利用Java演示字符数据和布尔型数据的使用
public class CharBooolDemo {
public static void main(String[] args) {
boolean b;
char ch1,ch2;
ch1 = 'Y';
ch2 = 65;
System.out.println("ch1 = "+ch1+",ch2 = "+ch2);
b = ch1==ch2;
System.out.println(b);
ch2 ++;
System.out.println("ch2="+ch2);
}
}