Java Character类常用方法
提问人:刘旭39发布时间: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));
}
}
继续查找其他问题的答案?
相关视频回答
回复(0)
点击加载更多评论>>