Java Character類常用方法
提問人:劉旭39發(fā)布時間:2020-11-27
//Character類常用方法
public class CharacterMethod {
public static void main(String[] args) {
Character char1 = new Character('c');
char char2 = Character.toUpperCase(char1);
System.out.println(char1+"是大寫字母"+ Character.isUpperCase(char1));
System.out.println(char1 + "是小寫字母" + Character.isLowerCase(char1));
System.out.println(char2 + "是大寫字母"+Character.isUpperCase(char2));
}
}
繼續(xù)查找其他問題的答案?
相關(guān)視頻回答
點(diǎn)擊加載更多評論>>