package day88;
import javax.swing.JOptionPane;
public class Sen {
public static void main(String []args) {
String StrGrade=JOptionPane.showInputDialog("请输入成绩,0~100");
int iGrade=Integer.parseInt(StrGrade);
switch(iGrade/10) {
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("E");break;
case 8:System.out.println("F");break;
case 9:
case 10:System.out.println("A");break;
default:System.out.println("输入的数不在范围内");
}
}
}
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
JOptionPane cannot be resolved
at day88/day88.Sen.main(Sen.java:6)
求指教
|
|
|
|
评论
直达楼层