How To Seperate String To Strings By Android Studio

[Solved] How To Seperate String To Strings By Android Studio | Swift - Code Explorer | yomemimo.com
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

Answers related to how to seperate string to strings by android studio

Code Explorer Popular Question For Swift