Getchars String

in Hindi - Getchars String



not yet

Source Code :

RUNpublic class GetChars{

public static void main(String args[]){
      
String str1 = "Hello World";

char[] str2 = new char[7];

str1.getChars(2, 6, str2, 1);
System.out.print("Output  = ");
System.out.print(str2);
}
}