private ArrayList container = new ArrayList; public Test() { for( int i = 0; i < container.size(); i++) object.exampleMethod(container.get(i)); }