a-zA-Z0-9的字符取值范围测试代码
package com.xiaoa;/**
* @author niyite
*
*/
/*
* A:65
* a:97
* 0:48
*/
public class Demo {
public static void main(String[] args) {
System.out.println('A'*1);
char c = (char) ('A'+'a');
System.out.println(c);
System.out.println((char) ('A'+'a'));
System.out.println('A'-0);
System.out.println('a'-0);
System.out.println('0'-0);
}
}