标题: 字符搞不懂,,求带! [打印本页] 作者: 坏坏坏男孩 时间: 2016-7-9 23:43 标题: 字符搞不懂,,求带! class ssss {
public static void main(String[] args) {
char ch = '8';
int r = 10;
switch (ch + 1) {
case '7':
r = r + 3;
case '8':
r = r + 5;
case '9':
r = r + 6;
break;
default:
r = r + 8;
}
System.out.print('8'+1);
}
}