All about Java String.
This sections shows how numbers can be converted into String. Given program gives the functionality for conversion of numbers to String. Code Description:
Different kind of numbers have been declared, for example, long, int and float etc given below. valueOf() method is used which is basically Stringclass’s method. For numeric conversions String.valueOf() is used & numeric classes are converted into String by using toString() method, as given below: