将[string,string]转换为Array

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)

谢谢你

Yog*_*ogu 7

str = str.substring(1, str.length() - 1); // cut [ and ] off
String[] parts = str.split(",");
Run Code Online (Sandbox Code Playgroud)