2:53 am - Tuesday April 23, 2019

Java program for Character value checking

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044

/**

*@author :CandidJava.com

*@descriptions : This program explains Character value checking.

*/

class Char {

public static void main(String[] args) {

char ch1 = 'a';

char ch2 = 65;

System.out.println("Value of char variable ch1 is :" + ch1);

System.out.println("Value of char variable ch2 is :" + ch2);

}

}

Output :

 D:\ candidjava\code>javac Char.java

D:\ candidjava\code>java Char

Value of char variable ch1 is :a

Value of char variable ch2 is :A

Filed in: Z-A All Java Codes

No comments yet.

Leave a Reply