Check out example codes for "android how to split string". It will help you in understanding the concepts better.

Code Example 1

String currentString = "Fruit: they taste good";
String[] separated = currentString.split(":");
separated[0]; // this will contain "Fruit"
separated[1]; // this will contain " they taste good"

Learn ReactJs, React Native from akashmittal.com