zoukankan      html  css  js  c++  java
  • 吴裕雄--天生自然 JAVA开发学习:Character 类

    char ch = 'a';
     
    // Unicode 字符表示形式
    char uniChar = 'u039A'; 
     
    // 字符数组
    char[] charArray ={ 'a', 'b', 'c', 'd', 'e' };
    public class Test {
    
        public static void main(String args[]) {
            System.out.println(Character.isLetter('c'));
            System.out.println(Character.isLetter('5'));
        }
    }
    public class Test {
    
        public static void main(String args[]) {
            System.out.println(Character.isDigit('c'));
            System.out.println(Character.isDigit('5'));
        }
    }
    public class Test {
     
        public static void main(String args[]) {
            System.out.println(Character.isWhitespace('c'));
            System.out.println(Character.isWhitespace(' '));
            System.out.println(Character.isWhitespace('
    '));
            System.out.println(Character.isWhitespace('	'));
        }
    }
    public class Test {
    
        public static void main(String args[]) {
            System.out.println( Character.isUpperCase('c'));
            System.out.println( Character.isUpperCase('C'));
        }
    }
    public class Test {
    
        public static void main(String args[]) {
            System.out.println( Character.isLowerCase('c'));
            System.out.println( Character.isLowerCase('C'));
        }
    }
    public class Test {
    
        public static void main(String args[]) {
            System.out.println(Character.toUpperCase('a'));
            System.out.println(Character.toUpperCase('A'));
        }
    }
    public class Test {
    
        public static void main(String args[]) {
            System.out.println(Character.toLowerCase('a'));
            System.out.println(Character.toLowerCase('A'));
        }
    }
    public class Test {
    
        public static void main(String args[]) {
            System.out.println(Character.toString('a'));
            System.out.println(Character.toString('A'));
        }
    }
  • 相关阅读:
    机器学习(Machine Learning)&深入学习(Deep Learning)资料
    漫谈 机器学习
    Android 屏幕滑动事件
    Andriod中绘(画)图----Canvas的使用详解
    android studio上代码编译调试中遇到的一些异常记录
    Android签名详解(debug和release)
    如何用AndroidStudio导入github项目
    java synchronized详解
    视频编解码学习之一:理论基础
    Android 环境下编译FFmpeg
  • 原文地址:https://www.cnblogs.com/tszr/p/10960175.html
Copyright © 2011-2022 走看看