Class method 1.number
- xxxValue () object into a number of data type XXX
- compareTo()
- equals()
- valueOf()
- toString () Returns a string value
- parselnt () parses the string to an int
- abs()
- ceil()
- floor()
- Rint ()
- round)
- (I)
- max
- exp()
- sqrt () square root arithmetic
- without()
- cos()
- tan()
- asin()
- acos()
- Atan ()
- atan2 () Cartesian coordinates into polar coordinates
- toDegree () parameter turn angle
- toRadians () angle into radians
- random () Random Number
2.character class
- isLetter () whether the letter
- isDigit () whether the numeric characters
- isWhitespace () whether it is a space
- isUpperCase () whether uppercase
- isLowerCase () whether lowercase letters
- toUpperCase () specified in uppercase letters
- the toLowerCase () letters designated in lowercase
- toString () Returns a string
3.string class
Note: string can not be modified once created class, StringBuffer, StringBuilder class can be modified
https://www.w3cschool.cn/java/java-string.html
4.StringBuffer、StringBuilder类
- StringBuilder thread-safe, fast (without regard to security, there is most often the case)
- StringBuffer thread-safe, slow
Note: StringBuffer and StringBuilder creation, but also to modify
If the required thread-safe, use the StringBuffer, fast speed, if required, use StringBuiler
(Thread-safe: when multi-threaded access, the use of locking mechanism, when one thread to access the data class, protected, other threads can not be accessed finish reading this thread know, other threads to use does not appear or inconsistent data. data pollution. thread-safe, just do not provide data access protection, there may be multiple threads to change the data has caused the resulting data is dirty data)
https://www.w3cschool.cn/java/java-stringbuffer.html