Hi,
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
e.g:
ArrayList itemsList = new ArrayList();
...
itemsList.add(anItem);
double amount = itemsList[0].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?