ArrayList ar = new ArrayList(); for(Iterator i = ar.iterator(); ar.hasNtext(); ) { String item = (String) i.next(); }