位置:首頁(yè) > 軟件操作教程 > 編程開(kāi)發(fā) > Java > 問(wèn)題詳情

Java Character類常用方法

提問(wèn)人:劉旭39發(fā)布時(shí)間: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+"是大寫(xiě)字母"+ Character.isUpperCase(char1));

System.out.println(char1 + "是小寫(xiě)字母" + Character.isLowerCase(char1)); 

System.out.println(char2 + "是大寫(xiě)字母"+Character.isUpperCase(char2));

}

}K[FT3U]AP~N@V`08M7[$_`L.png

繼續(xù)查找其他問(wèn)題的答案?

相關(guān)視頻回答
回復(fù)(0)
返回頂部