View RSS Feed

Recent Blogs Posts

  1. Convert Number to String

    by , 04-26-2012 at 07:56 PM
    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:
    Program’s code ...