5:29 am - Wednesday February 21, 2018

StringBuilder Example Program for offsetByCodePoints(int index,int codePointOffset)

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
*@description:StringBuilder Example Program for offsetByCodePoints(int index,int codePointOffset)
*/

class Offsetbyte
{
public static void main(String[] args)
{
String s="offset by code points";

//check the condition with string s
int i=s.offsetByCodePoints(12,5);
System.out.println(i);
}
}

Output:

17

Filed in: Core Java Tutorial

Comments are closed.