HelloWorld.java:11: error: class, interface, or enum expected public void showTop3(int[] scores){ ^ HelloWorld.java:13: error: class, interface, or enum expected int num=0; ^ HelloWorld.java:14: error: class, interface, or enum expected for (int i=scores.length-1;i>=0;i--){ ^ HelloWorld.java:14: error: class, interface, or enum expected for (int i=scores.length-1;i>=0;i--){ ^ HelloWorld.java:14: error: class, interface, or enum expected for (int i=scores.length-1;i>=0;i--){ ^ HelloWorld.java:16: error: class, interface, or enum expected continue;} ^ HelloWorld.java:18: error: class, interface, or enum expected if(num>=3){ ^ HelloWorld.java:20: error: class, interface, or enum expected } ^ HelloWorld.java:22: error: class, interface, or enum expected } ^ 9 errors
好吧,知道了,大括号标的不对