Answers for "android explode string"

0

android explode 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"
Posted by: Guest on June-26-2021

Browse Popular Code Answers by Language