3:50 pm - Tuesday February 19, 7630

Character Example Program for codePointAt(char[] a,int index, int limit)

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:To find codePointAt
 **/
import java.lang.*;

public class Character1 {
	public static void main(String args[]) {
		char a[] = { 'a', 'b', 'c', 'd', 'e' }; // Initialize the array
		System.out.println(a);
		Character ch = new Character('a');// create object
		int codePoint = ch.codePointAt(a, 0, 2);// to find codepointat
		System.out.println(codePoint); // to print codepoint
	}
}

Output:
abcde
97

Filed in: Z-A All Java Codes

Comments are closed.