8:19 pm - Saturday April 20, 2019

Character Example Program for charValue()

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:Candid
 * @Discription:Character Example program for charValue()
 */
public class Character {
	public static void main(String args[]) {
		String s = " Strings are immutable";
		char y = s.charAt(10); // convert integer value to character
		System.out.println(y); // print char value
	}
}

Output:
r

Filed in: Z-A All Java Codes

Comments are closed.