Getting the value of a datafield in an arraylist of objects
Author |
Message |
Fasih
|
Posted: 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? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
|
|
|
![](images/spacer.gif) |
|
|