char data type in java Example
Java Programming Language Character Class in java (Article) Character Class in java (Program)
1022Program:
class CharDemo { public static void main(String args[]) { char ch,ch1,ch2,ch3; ch = 'M'; ch1 = 'N'; ch2 = 'O'; ch3 = 'P'; System.out.println("Character is : " + ch); System.out.println("Character is : " + ch1); System.out.println("Character is : " + ch2); System.out.println("Character is : " + ch3); } }
Output:
Character is : M Character is : N Character is : O Character is : P Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.