package java_program;
public class switch_sentence2 {
public switch_sentence2() {
}
// TODO Auto-generated constructor stub
public static void main(String[] args) {
// TODO Auto-generated method stub
char ch = args[0].charAt(0);
switch (ch) {
case '0': case '1': case '2': case '3':
case '4': case '5': case '6' :case '7':
System.out.println("我不知道这里 ,你曾经来过的地方"+ch);
break;
}
}
}
这里再运行的时候有点小技巧在另外一个博客里面有写https://blog.csdn.net/qq_43541507/article/details/102215588