import java.util.*;
class SplitTest {
public static void main(
String[] args) {
String[] tokens = args[0].split(args[1]);
System.out.println("count " + tokens.length);
for(String s : tokens)
System.out.println(">" + s + "<");
}
}
I am getting compilation error in the for statement .
Could any body explain how this for loop works.