360fans_u40363983 发表于 2019-9-7 22:18

Exception in thread "main" java.lang.Error:

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)
求指教

南海宋仲基 发表于 2019-9-8 19:43

360百科感谢您的反馈,您反馈的问题与360百科产品无关,请联系相关部门处理,非常感谢您对360的支持。仅受理来自360百科用户对百科词条的反馈。
页: [1]
查看完整版本: Exception in thread "main" java.lang.Error: