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 pt.stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #split #string #array
ADD COMMENT
Topic
Name
8+7 =