Quantcast
Viewing latest article 27
Browse Latest Browse All 61

Answer by Hank for In detail, how does the 'for each' loop work in Java?

Here's an equivalent expression.

for(Iterator<String> sit = someList.iterator(); sit.hasNext(); ) {    System.out.println(sit.next());}

Viewing latest article 27
Browse Latest Browse All 61

Trending Articles