作者:丁扣其 | 来源:互联网 | 2023-05-17 13:10
Iamwritingacode,inwhichiwanttosplitthefollowingstring:我正在编写一个代码,我想在其中拆分以下字符串:String
I am writing a code, in which i want to split the following string:
我正在编写一个代码,我想在其中拆分以下字符串:
String str = "{route=Head west on, some address, distance=0.2 km, duration=1 min}";
I want to separate the value for route, distance and duration.
我想分开路线,距离和持续时间的值。
3 个解决方案