1.String转StringBuffer
String str = "hellow word"
StringBuffer buffer = new StringBuffer(str);
2.json字符串转list
String str = "[1,2,3]";
JSONArray list = JSONArray.parseArray(str );
3.String转Boolean
String flag = "true";
Boolean bl = Boolean.parseBoolean(flag); //bl的输出结果时 true