Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java split string array

Java example to split a string
String str = "A-B-C-D";
String[] strArray = str.split("-"); 
 
System.out.println(Arrays.toString(strArray));  // [A, B, C, D]
Source by howtodoinjava.com #
 
PREVIOUS NEXT
Tagged: #java #split #string #array
ADD COMMENT
Topic
Name
2+3 =