Compiler Error J0139

Invalid label

The compiler detected an invalid label. Labels must start with a non-numeric character. Change the label and compile again.

The following example illustrates this error:

public class Simple {
   
   public int method1(int arg1) {
      123:
         //error: label cannot begin with a number.
         return arg1 * 2;
   }
}