java string copy characters

Solutions on MaxInterview for java string copy characters by the best coders in the world

showing results for - "java string copy characters"
Estelle
30 Feb 2018
1public class Demo {
2   public static void main(String []args) {
3      char[] arr = { 'p', 'q', 'r', 's' };
4      String str = String.copyValueOf(arr, 1, 2);
5      System.out.println(str);
6   }
7}