81,122
社区成员




String str = "";//你的字符串
StringBuffer sb = new StringBuffer(str);
sb.replace(str.indexOf("+"),str.indexOf("+") + 3, "");
public class Test {
public static void main(String[] args) {
String text = "{\"expect\":\"861096\",\"opencode\":\"03,07,08,11,12,22,31,35,36,39,46,48,50,59,61,63,68,73,74,77+03\",\"opentime\":\"2017-12-12 11:10:00\",\"opentimestamp\":1513048200}]}\n";
int end = text.lastIndexOf("]}");
String json = text.substring(0, end);
System.out.println(json);
}
}