I know goto is a keyword which does not have any use in Java. Can I perform something like this using a label or other way to move to a different part of the code?
public static void main(String[] args) {
for(int i=5; i>0; i--){
System.out.println();
first:
for(int x=i; x<6; x++){
System.out.print("*");
}
}
System.out.println("print '*'");{
break first;
}
}
}