Thursday, 13 June 2013

Use of getChars

getChars:  
getChars is used to select the more than one character using locations

// Program to use of getchars

class getChars
{
public static void main(String arr[])
{
String a="There is Shaminder singh";
int start=6;
int end=14;
char buf[]= new char[end-start];
a.getChars(start,end,buf,0);
System.out.println(buf);
}
}




0 comments:

Post a Comment