valueof in java

Solutions on MaxInterview for valueof in java by the best coders in the world

showing results for - "valueof in java"
Sara
11 Jan 2017
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
queries leading to this page
java valueofvalueof in javavalueof in java