I think this will work:
for (Iterator<String> i = someList.iterator(); i.hasNext(); ) { String x = i.next(); System.out.println(x);}
I think this will work:
for (Iterator<String> i = someList.iterator(); i.hasNext(); ) { String x = i.next(); System.out.println(x);}