Utility Methods
Parse methods
Methods | Description |
---|---|
static int parseInt(String s) | Converts String s to an int using radix 10. |
static byte parseByte(String s) | Converts String s to a byte. |
static short parseShort(String s) | Converts String s to a short. |
static long parseLong(String s) | Converts String s to a long. |
static float parseFloat(String s) | Converts String s to a float. |
static double parseDouble(String s) | Converts String s to a double. |
valueOf methods
Methods | Description |
---|---|
static Integer valueOf(String s) | Converts String s to an Integer object. |
static Byte valueOf(String s) | Converts String s to a Byte pbject. |
static Short valueOf(String s) | Converts String s to a Short object. |
static Long valueOf(String s) | Converts String s to a Long object. |
static Float valueOf(String s) | Converts String s to a Float object. |
static Double valueOf(String s) | Converts String s to a Double object. |
toString methods
Methods | Description |
---|---|
static String toString(int n) | Converts int n to a String object. |
static String toString(byte n) | Converts byte n to a String object. |
static String toString(short n) | Converts short n to a String object. |
static String toString(long n) | Converts long n to a String object. |
static String toString(float n) | Converts float n to a String object. |
static String toString(double n) | Converts double n to a String object. |
String toString()
Converts an invoking object to String.
Methods of Character Class
Methods | Description |
---|---|
static boolean isDigit(char ch) | Returns true if ch is a digit between 0-9 otherwise false. |
static boolean isLetter(char ch) | Returns true if ch is letter otherwise returns a false. |
static boolean isLetterOrDigit(char ch) | Returns true if ch is a letter or a digit otherwise returns a false. |
static boolean isLowerCase(char ch) | Returns true if ch is a lowercase otherwise returns a false. |
static boolean isUpperCase(char ch) | Returns true if ch is a uppercase otherwise returns a false. |
static boolean isWhitespace(char ch) | Returns true if ch is a whitespace otherwise returns a false. |
static char toLowerCase(char ch) | Returns a lowercase equivalent of ch. |
static char toUpperCase(char ch) | Returns a uppercase equivalent of ch. |