multiple classes in a single file : modifier private not allowed here

前端 未结 7 1748
暗喜
暗喜 2021-02-12 14:38

I am not able to understand why this code doesn\'t compile:

class A {
    public static void main(String[] args) {
        System.out.println(\"hi\");
    }
}

p         


        
7条回答
提交回复
热议问题