it says in the book we have to set it to static. :) Right now i am updating my array to take a double itemInventoryValue field. Then maybe i can use that value to get the totalInventoryValue .
Type: Posts; User: yah
it says in the book we have to set it to static. :) Right now i am updating my array to take a double itemInventoryValue field. Then maybe i can use that value to get the totalInventoryValue .
thanks very much for the help. I still couldn't get it to work properly. I tried moving the statement to the actionlistener and call it from the itemListener so it doesn't affect the value when the...
the totalInventoryValue is the variable that stores the sum of each items itemInventoryValue (quantity*price). It is supposed to display the TOTAL sum of all itemInventoryValue regardless if any...
I was working on taking the loops out. Unfortunately, each time I select an item in the choice box the totalInventoryValue gets summed up with the previous selections and it still doesn't remain...
i think i used that statement before but it would still sum up the itemInventoryValue then multiply by array.length then when i click on another item in the choicebox the totalInventoryValue would...
i've tried this statement many times before but when i select another item in the choice box the itemInventoryValue for the previous item gets added to the totalInventoryValue of the item multiplied...
i populate my choicebox.
public InventoryControlGUIapp()
{
super ("INVENTORY CONTROL GUI APP");
itemsArray[0] = new Items(87, "Wrench", 5, 13.23); //4. Populate array reference...
hi. sorry i fell asleep. it was really late. Thanks for the reply and I hope I didn't post in the wrong section. so when i select an item in the choice box it is supposed to calculate the sum of the...
hello. im having trouble getting the total inventory value in an array. It would loop the items in the choicebox by item but wouldn't add the item values together.
itemsArray[0] = new Items(87,...