未定义的标签LOOP1
编程实现:根据学生成绩输出评价等级(成绩可以随机输入,且用开关语句实现);0~59:E级、60~69:D级、70~79:C级、80~89:B级、90~100:A级
import *;
public class Exer4_1
{
public static void main (String args[])
{
LOOP1:
System.out.println("请输入一个成绩:");
try
{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int mark = Integer.parseInt(in.readLine());//强制转换为int的类型
if(mark>=0 && mark<=100)
{mark = mark/10;
switch(mark)
{case 0:
case 1:
case 2:
case 3:
case 4:
case 5:System.out.println("E级");break;
case 6:System.out.println("D级");break;
case 7:System.out.println("C级");break;
case 8:System.out.println("B级");break;
case 9:
case 10:System.out.println("A级");break;
}
}
else
continue LOOP1;
}
catch (IOException e)
{
}
}
}
怎么修改啊???急救