3:53 pm - Saturday March 25, 8778

Character Example Program for codePointBefore(char[] a,int index,int start)

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
/*Character Example Program for codePointBefore(char[] a,int index,int start)*/
/**
 *@Author:CandidJava.com
 *@description:findout codepoint before using PointBefore class
 */
import java.lang.*;

public class PointBefore {
	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 for character
		int codePoint = ch.codePointBefore(a, 4, 0);// findout codepointbefore
		System.out.println(codePoint);// print codepoint
	}
}

OUTPUT:
abcde
100

Filed in: Z-A All Java Codes

Comments are closed.