import java.util.Scanner;
class testing
{
int i ; int j ;
Scanner sc = new Scanner(System.in) ;
void lolwa()
{
out:
for(i = 0 ; i <= 6 ; i++)
{
System.out.println(i);
}
System.out.println("Enter 1 to restart loop");
System.out.println("Enter 2 to continue till 10");
j = sc.nextInt();
if(j == 1)
{
continue out ;
}
if(j == 2)
{
for(i = 7 ; i <= 10 ; i++)
{
System.out.println(i);
}
}
}
}
I compiled it in BlueJ and it's saying: "Undefined label out". I just learnt using continue statement, so I can't figure out the problem