public class Try {
public static void main(String[] args) {
int i=0;
while(i<10)
{
System.out.println("Hello World");
if (i==6)
{
// The Execution pointer should go back to this statement (int i=0);
}
i++;
}
}
}
We use goto
keyword in VB to put the execution pointer on particular set of statements. Please tell me How this is possible in Java. How we can place the execution pointer on particular set of statements?