Choosing The Right Parallel Loop
Jump to navigation
Jump to search
Java has multiple looping options. There is the old school for loop:
String[] names = { "fred", "george" };
for(int i=0; i<names.length; ++i) {
String name = names[i];
}