S
S
SuperDuperPuper2020-11-17 00:26:24
Java
SuperDuperPuper, 2020-11-17 00:26:24

Why doesn't a Java program compile?

package com.company;
public class lesson {
    public static void main(String[] args) {
        block1:{
            block2:{
                block3:{
                    System.out.println("start");
                    break block2;
                }
                System.out.println("3 break");
            }
            System.out.println("2 break");
        }
        System.out.println("1 break");

    }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question