★★Java質問・相談スレッド160★★
レス数が900を超えています。1000を超えると表示できなくなるよ。
0935デフォルトの名無しさん
2013/03/22(金) 17:48:14.30自分で試せばいいじゃん。
int x = 1;
switch (x++) {
case 1: System.out.println("one"); break;
case 2: System.out.println("two"); break;
}
結果:one
int x = 1;
switch (++x) {
case 1: System.out.println("one"); break;
case 2: System.out.println("two"); break;
}
結果:two
こんなんで試験受かっても、何の役にも立たないよなぁ。
レス数が900を超えています。1000を超えると表示できなくなるよ。