Chapter 5-Library class
Chapter 5-Library class
Function Definition
a.Integer.parseInt(string val ) Used to convert string value into
an integer primitive type.
b. Integer.valueOf( ) Same as parseInt() but it returns
integer object.
c. Integer.toString( ) Converts integer to string.
Function Definition
a. Double.parseDouble(string val Used to convert string value into
) double primitive type.
b. Double.valueOf( ) Same as parseDouble() but it
returns double object.
c. Double.toString( ) Converts double to string.
Function Definition
a. Float.parseFloat(string val ) Used to convert string value into
float primitive type.
b. Float.valueOf( ) Same as parseFloat() but it returns
float object.
c. Float.toString( ) Converts float to string.
Function Definition
a. Character.isLetter(char c) It returns true if the
character is letter
otherwise false.
b. Character.isDigit(char c) It returns true if the
character is digit otherwise
false.
c. Character.isLetterOrDigit(char c) It returns true in both the
cases if given character is
letter or digit.
d. Character.isLowerCase(char c) It returns true if the given
character is a lowercase
letter otherwise false.
e. Character.isUpperCase(char c) It returns true if the given
character is a uppercase
letter otherwise false.
f. Character.isWhitespace(char c) It returns true if the given
character is a whitespace
otherwise false.
g. Character.toLowerCase(char c) It converts given character
into lowercase.
h. Character.toUpperCase(char c) It converts given character
into uppercase.