I found tht error is with Continue statement...can you explain this. Continue should not be used outside the loop. How can I change this code runnable
public class Example1 {
public static void main(
String[] args) {
int i=0;
label:
if(i<2){
System.out.println("I is :" +i);
i++;
continue label;
}
}
}
Thanks...