Copyvalueof String

in Hindi - Copyvalueof String



not yet

Source Code :

RUNpublic class CopyValueOf {


public static void main(String args[]) {

      
String str = "";
char[] arr = {'H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd'};



System.out.println("Copy arr to str2: " + str.copyValueOf( arr ));


System.out.println(str.copyValueOf(arr, 1, 3));


}
}