Converting Integer into Character in Java

 class data   
 {  
      public static void main(String[] args)   
      {  
           char ch='A';  
           short num=65;  
           System.out.println(num+"converting Integer into character = "+(char)num);  
           System.out.println(ch+ "converting character into Integer = "+(int)ch);  
      }  
 }  

Post a Comment

0 Comments