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 ]