java编程时,提示“进行语法解析时已到达文件结尾”是什么意思
classScore{Score(){System.out.println("thisisfangfaorisduixiang");}publicvoidsort(int...
class Score{
Score(){
System.out.println("this is fangfa or is duixiang");
}
public void sort(int a){
switch(a/10){
case 10:
System.out.println("A");
break;
case 9:
System.out.println("A");
break;
case 8:
System.out.println("B");
continue;
case 7:
System.out.println("C");
case 6:
System.out.println("D");
break;
default:
System.out.printin("E");
}
}
}
public class Zy17{
public static void main(String[] args){
Score a1=new Score();
Score a2=new Score();
Score a3=new Score();
Score a4=new Score();
Score a5=new Score();
a1.sort(10);
a2.sort(98);
a3.sort(83);
a4.sort(70);
a5.sort(19);
} 展开
Score(){
System.out.println("this is fangfa or is duixiang");
}
public void sort(int a){
switch(a/10){
case 10:
System.out.println("A");
break;
case 9:
System.out.println("A");
break;
case 8:
System.out.println("B");
continue;
case 7:
System.out.println("C");
case 6:
System.out.println("D");
break;
default:
System.out.printin("E");
}
}
}
public class Zy17{
public static void main(String[] args){
Score a1=new Score();
Score a2=new Score();
Score a3=new Score();
Score a4=new Score();
Score a5=new Score();
a1.sort(10);
a2.sort(98);
a3.sort(83);
a4.sort(70);
a5.sort(19);
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询