valueOf() method

Let us understand valueOf() method valueOf() is used to convert different types of values to String type. String class has overloaded valueOf() methods for all the primitive types and for object type Signature of overloaded valueOf() methods public static String valueOf(boolean b) public static String valueOf(char c) public static String valueOf(char[] c) public static String […]

Share this article on

toLowerCase() and toUpperCase()

If we want to convert all string characters into lower case or upper case, we can use these methods. toLowerCase() This method returns the string with all the characters converted into lower case if any in upper case. There are 2 overloaded methods in toLowerCase() One which takes locale and one which does not. Signature […]

Share this article on
< Previous Next >