import java.awt.*; import java.applet.*; //Demonstrate Char Data Type // public class CharDemo extends Applet{ public void paint(Graphics g) { char ch1,ch2; ch1 = 88; ch2 = 'Y'; g.drawString("Ch1 and Ch2: ",40,40); g.drawString(ch1 + " " + ch2,130,40); } } // The output of this program is Ch1 and Ch2: XY