Long story short, my mom is in this java class and doesn't understand it at all. She's been having me help her, but I haven't done java in about 4-5 years now.
Right now, we have to create a program that uses an array and basically it needs to look like this:
ID will just be 0-n, however many products there are.
Products will be text.
Units is how many of said product is in stock.
Price is the price per unit.
Value is (price)(units).
I'm having trouble understanding how to do this. I know string arrays and int arrays but not a way to combine them into one and still be able to multiply for the Value column. Any thoughts guys?
Right now, we have to create a program that uses an array and basically it needs to look like this:
Code:
ID Product Units Price Value
0 Stapler 2 2 4
Products will be text.
Units is how many of said product is in stock.
Price is the price per unit.
Value is (price)(units).
I'm having trouble understanding how to do this. I know string arrays and int arrays but not a way to combine them into one and still be able to multiply for the Value column. Any thoughts guys?