switch 后面的必須是整形、字符型、字符串型或 枚舉類型。 byte int short char string long; boolean float double 不可以。對(duì)不?
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);
}
}
2014-11-17