I am writing a java application where i am trying to create an arraylist of "Item" objects. An Item has certain methods such as getStartValue(), etc.
What i am trying to do is to access an Item within my arraylist using operator and then call a method for that object
ArrayList itemsList = new ArrayList(); ... itemsList.add(anItem); double amount = itemsList.getStartValue();
I looked through the documentation but i did not see anything related. There was also nothing related in the Vector documentation but i think this is possible using a Vector.
Any ideas or suggestions?