Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to split string in java android

String currentString = "Custom Section";
String[] splitarray = currentString.split(" ");
separated[0]; // this will contain "Custom"
separated[1]; // this will contain "Custom"

//assign to string variable
 for (int i = 2; i < array.length; i++) {
   secondName = secondName + " " + array[i];
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #split #string #java #android
ADD COMMENT
Topic
Name
2+7 =