Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Getting Info from an arraylist. (http://www.go4expert.com/forums/getting-info-arraylist-t27276/)

Fuzzyfella 3Dec2011 21:08

Getting Info from an arraylist.
Hi all,
I'm a newbie to programming and Java and am trying to print a string from an arraylist. I have a class 'student' and a class 'course' which contains the Arraylist <Student> students. How do I return the string for the student variable studName.

I tried:
System.out.prinln("Student Name: " +students.getStudName);
But its telling me that it cant find variable studName and I cant find a similar problem anywhere to point me in the right direction.

Any help would be greatly appreciated.

All times are GMT +5.5. The time now is 13:39.