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