The method that is Usage

sc.nextline () performs all means comprises a row of spaces and the like.

sc.next () filtering spaces and the like.

string buffer capacity of the modified class.

sc.set charat () modify the character at the specified index.

sc = sc.insert () inserted in front of the character at the specified index.

sc = sc.reverse () String reverse order;

insert. insert reverse reverse

sc = sc.delete () Delete substring

delete delete

int lenght = sbf.length () Gets the string length of the sequence

int index = sbf.indexof () Get the index of the string is located

String substr = sbf.substring () obtained from. . . To. . . String between.

String buffer tmp = sbf.replace () will. . . To. . Characters replaced by anything.

String builder class use a single line

String buffer using the multi-line type

phone. matches () matches the regular expression is correct phone number

String regex for dividing symbol int = (limit) number of division

end swith (String ..) Analyzing suffix

startswith (String prefix) to determine sentence

. Str replace ( "a", "Yi") string replacement;

str.replaceAll("\\s," "   ")

 

id. substring (digital Digital)

inderxof ( "") search string

 

Guess you like

Origin www.cnblogs.com/qq1534164223/p/11417495.html