字符类型(Java)

public class D{
	public static void main(String[] args){
		char ch1='a';
		char ch2=97;
		System.out.println("ch1="+ch1);
		System.out.println("ch2="+ch2);
		char ch3='\"';//转义字符
		char ch4='\\';
		System.out.println("ch3="+ch3);
		System.out.println("ch4="+ch4);
	}
}	
上一篇:算法实现之有效的括号


下一篇:POJ 2189