您可以通过省略该
break;语句来使用切换大小写掉线。
char c = ;switch(c) { case 'a': case 'A': //get the 'A' image; break; case 'b': case 'B': //get the 'B' image; break; // (...) case 'z': case 'Z': //get the 'Z' image; break;}…或者您可以在输入之前将其标准化为小写或大写
switch。
char c = Character.toUpperCase();switch(c) { case 'A': //get the 'A' image; break; case 'B': //get the 'B' image; break; // (...) case 'Z': //get the 'Z' image; break;}


