Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

valueof in java

/*
  The java string valueOf() method converts different types of 
  values into string. By the help of string valueOf() method, 
  you can convert int to string, long to string, boolean to string, 
  character to string, float to string, double to string, object to string 
  and char array to string.
*/
public static String valueOf(Object obj) {  
	return (obj == null) ? "null" : obj.toString();  
}  
// you can see more here: 
// https://www.javatpoint.com/java-string-valueof
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #valueof #java
ADD COMMENT
Topic
Name
4+1 =