1/*
2 The java string valueOf() method converts different types of
3 values into string. By the help of string valueOf() method,
4 you can convert int to string, long to string, boolean to string,
5 character to string, float to string, double to string, object to string
6 and char array to string.
7*/
8public static String valueOf(Object obj) {
9 return (obj == null) ? "null" : obj.toString();
10}
11// you can see more here:
12// https://www.javatpoint.com/java-string-valueof