The only two errors I am getting are denoted by "**********."
The first error I am getting gives me a different error message every time I modify the code. All I want is for the "prices.length" to limit "i."
The second error I am getting also tends to give me different messages. I am trying to define a variable based on an Array List. It is an int, but I need to extract values from an array list(quantities).
Any help or input anyone could provide would be great, thanks very much. [ March 29, 2006: Message edited by: ken zemaitis ]
also, it would help in the future if you posted the EXACT error message you are getting with the code you are posting. those error messages tell you a lot... [ March 29, 2006: Message edited by: fred rosenberger ]
i) Note that the prices is an array. To find the length of an array, you need to use the length property, not the length() method
ii) When you get something from a List, it always returns an Object. Looking at your code, it seems that you are adding a String to the array list. If that String represents an integer, you need to convert it accordingly (cast the Object to String and then convert it into an int).
Hope that helps. [ March 29, 2006: Message edited by: Mani Ram ]