java string copy characters

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
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}