package comm.imooc;
import java.util.Scanner;
public class testone {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int score = input.nextInt();
int count = 0;
System.out.println("累加前的成绩为:"+score);
while(score<60){
score+=1;
count++;
}
System.out.println("累加后的成绩为:"+score);
System.out.println("累加了"+count+"次");
}
}
点击运行就报:
java.lang.NoClassDefFoundError: java/util/Scanner
at comm.imooc.testone.main(testone.java:6)
Exception in thread "main"
dear4097658
蜂之谷
相关分类