Common methods of the String class:
- equals: string is the same
- equalsIgnoreCase: ignore case after the string is the same
- compareTo: comparing encoded according to Unicode character strings each
- compareToIgnoreCase: case-insensitive comparison performed in accordance with Unicode encoding each character string
- indexOf: certain character or character string at the standard position of the source string
- lastIndexOf: target character string in the source string or last occurrence of the subscript position
- valueOf: Other types to String
- charAt: Get the character specified index location
- codePointAt: Specifies the Unicode character encoding subscript
- concat: Append string to the current string
- isEmpty: string length is 0
- contains: contains the target string
- startsWith: whether the target string beginning
- endsWith: whether the target string ends
- format: format string
- getBytes: obtaining an array of strings of bytes
- getChars: Get string specified length character array
- toCharArray: Gets a string array of characters
- join: In a character string, a string array connector
- length: number of characters in a string
- matches: string matches the regular expression
- replace: replace string
- replaceAll: positive string substitutions
- replaceFirst: the target string to replace the first occurrence of
- split: a regular expression to split string
- substring: string interception
- toLowerCase: small letter string
- toUpperCase: turn a string uppercase
- trim: to string trailing spaces
- Java self-study guide
- Java interview questions summary PC client browser [Click here]
- Java mapping knowledge
- Java applets interview questions summary view, sweep the two-dimensional code