Tag: java long in string

long to String Conversion Example Java

April 26, 2011 · 1 min read
###### We know earlier, [parsing](http://way2java.com/java-lang/wrapper-classes/) is the operation on strings to convert into data types. This parsing, we used in command-line arguments and User Password validation. Now we think the other way. Sometimes, it is required to convert data types to string; exactly opposite of parsing. For this purpose, the String class comes with valueOf() static method. valueOf() is overloaded many times to take any data type as parameter and converts into string; it converts even objects into strings. Now we study long to String.