Question : how to seperate string to strings by , android studio
Answered by : fine-flatworm-hd12mxcccv27
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 : https://stackoverflow.com/questions/3732790/android-split-string | Last Update : Thu, 18 Jun 20