Java String valueOf
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.
Signature
The signature or syntax of string valueOf() method is given below:
Returns
string representation of given value
Java String valueOf() method example
Output:
3010
No comments:
Post a Comment