StringBuffer needs when defining the right way
E.g:
StringBuffer xxx = new StringBuffer ( "Wenwen pig");
Receiving a return value to use when using the method for adding and connecting StringBuffer;
String method:
s.equalslgnorecase () // not case sensitive
s.tolowercase () // converted to lowercase
s.touppercase () // converted to uppercase
s.equals () // Compare
s.length () // determine the length
s.concat () // connector
s.Indexof () // find and extract subscript
s.LastIndexof () // Find from the back
replace = s.replace(" "," ") // 替换
s.substring (,) // extract ........... ............ intermediate portion and
s.split () // Split, fill in parentheses characters (spaces can)
s.trim () // removal space portion of the head and tail of the string
StringBuffer sb = new StringBuffer()
sb.tostring (); // converted to a String
sb.append ( "**") // append characters
sb.insert (1, "**") // insert a character