Mat*_*ini 1 java arrays string android
大家好,我有这个字符串:
[JOLLY BLU at STAY SHIP, Voy: 0275/11]
Run Code Online (Sandbox Code Playgroud)
如何在String []中转换此字符串
value[0] = "JOLLY BLU at STAY SHIP";
value[1] = "Voy: 0275/11";
Run Code Online (Sandbox Code Playgroud)
谢谢你
str = str.substring(1, str.length() - 1); // cut [ and ] off
String[] parts = str.split(",");
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
115 次 |
| 最近记录: |