Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

split string 2 characters java

        String str= "abcdef";

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

        System.out.println(java.util.Arrays.toString(array));     
 
PREVIOUS NEXT
Tagged: #split #string #characters #java
ADD COMMENT
Topic
Name
2+7 =