I have an ArrayList containing Objects which have String member variables. I need to output the values of these String member variables.
The ArrayList is called list1.
I've used list1.get(0) to return the 0 index Object in list1. How can I then access the returned Object's member variables?
Please be specific if you can because I'm quite new to Java.
Many Thanks
The ArrayList is called list1.
I've used list1.get(0) to return the 0 index Object in list1. How can I then access the returned Object's member variables?
Please be specific if you can because I'm quite new to Java.
Many Thanks