switch 后面的必须是整形、字符型、字符串型或 枚举类型。 byte int short char string long; boolean float double 不可以。对不?
2014-11-17
public class HelloWorld {
public static void main(String[] args) {
int score = 53;
int count = 0;
while(score != 60 ){
count++;
score++;
}
System.out.println(count);
}
}
public static void main(String[] args) {
int score = 53;
int count = 0;
while(score != 60 ){
count++;
score++;
}
System.out.println(count);
}
}