Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java how to split a string to array

String str= "abcdef";

        String[] array=str.split("(?<=G.{2})");

        System.out.println(java.util.Arrays.toString(array));   
Source by javarevisited.blogspot.com #
 
PREVIOUS NEXT
Tagged: #java #split #string #array
ADD COMMENT
Topic
Name
6+9 =