java里怎样截取字符串中冒号

2025-02-24 04:52:20
推荐回答(1个)
回答1:

String str = "123321:123457";
int start = str.indexOf(":");
String b = str.substring(start,1);