Among programmers, using the goto statement is generally considered evil (see: spaghetti code). 
In fact, Java doesn't even have this statement since it is so wrong. 

Instead, one can use the continue and break statements to structure a complicated control flow, which is as close to goto as you will get with Java.  Optionally, one can use label statements in conjuction, as illustrated in the Java code below which prints out a few positive even integers:

    searching: for (int i = 0; i <= 10; i++) {
        even: {
            if (i % 2 == 1) {
                break even;
            }
            if (i == 0) {
                continue searching;
            }
            System.out.println("Even positive number: "+i);
        }
    }
The output of this code is:
Even positive number: 2
Even positive number: 4
Even positive number: 6
Even positive number: 8
Even positive number: 10