document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. public class JavaCharExample {
  2.  
  3. public static void main(String[] args) {
  4.  
  5. char ch1 = 'a';
  6. char ch2 = 65; /* ASCII code of 'A'*/
  7.  
  8. System.out.println("Value of char variable ch1 is :" + ch1);
  9. System.out.println("Value of char variable ch2 is :" + ch2);
  10. }
  11. }
');