View Single Post
  #1 (permalink)  
Old 07-30-2007, 08:00 PM
elizabeth elizabeth is offline
Member
 
Join Date: Jul 2007
Posts: 40
elizabeth is on a distinguished road
how to return an object from an arraylist
How can I return an object from an arraylist given a specific index?

something like that?
Code:
private ArrayList container = new ArrayList; public Test() { for( int i = 0; i < container.size(); i++) object.exampleMethod(container.get(i)); }
Reply With Quote
Sponsored Links