Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java string copy characters

public class Demo {
   public static void main(String []args) {
      char[] arr = { 'p', 'q', 'r', 's' };
      String str = String.copyValueOf(arr, 1, 2);
      System.out.println(str);
   }
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #java #string #copy #characters
ADD COMMENT
Topic
Name
9+8 =