编程练习题
为什么这段代码放在Myeclipse里面就不行了呢。提示有错误
package newnew;
public class helloword {
public static void main(String[] args){
int score =53;
int count =0;
System.out.println("加分前成绩:"+score);
while(score>=60){
score=score+1;
count++;
}
System.out.println("加分后成绩:"+score);
System.out.println("共加了+count+次!");
}
}
错误提示:Description Resource Path Location Type
The value of the local variable count is not used helloword.java /wenwen/src/newnew line 6 Java Problem