📜  android 如何拆分字符串 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:31.838000             🧑  作者: Mango

代码示例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"