所以这里只是一个关于带有char的开关盒的快速问题.
所以:
char c = a.charAt(i);
switch(c){
case 'a': System.out.print("This is an a");
case ''': System.out.print("How can one get this character checked in the case?);
}
Run Code Online (Sandbox Code Playgroud)
那么一个案例如何检查一个字母'当检查案件中的字符的样式是'时?
将非常感谢帮助.