Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android how to split string

String currentString = "Fruit: they taste good";
String[] separated = currentString.split(":");
separated[0]; // this will contain "Fruit"
separated[1]; // this will contain " they taste good"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #android #split #string
ADD COMMENT
Topic
Name
3+4 =