String与StringBuilder的互相转换
String与StringBuilder的互相转换
String转StringBulider
StringBuilder sb = new StringBuilder();
sb.append(username);
StringBulider转String
StringBuilder sb = new StringBuilder();
String s = sb.toString();
StringBuilder sb = new StringBuilder();
sb.append(username);
StringBuilder sb = new StringBuilder();
String s = sb.toString();