Computer Science Canada Getting the value of a datafield in an arraylist of objects |
Author: | Fasih [ Mon May 30, 2011 10:53 pm ] |
Post subject: | Getting the value of a datafield in an arraylist of objects |
How would I get the value of an arraylist of objects. The arraylist of objects is called, and it is called for another class in which it initializes two data fields. How would I get the value of the specific point in the arraylist? like if I had an arraylist of objects of size 10, how would i get the value of the two datafields the object is pointing to? |
Author: | Tony [ Mon May 30, 2011 10:57 pm ] |
Post subject: | RE:Getting the value of a datafield in an arraylist of objects |
check the docs for the version of Java that you are using. E.g. http://download.oracle.com/javase/6/docs/api/java/util/ArrayList.html for java 6 |