toString() Method in java, Conversion Integer to String

Java Programming Language Number Class in java (Article) Number Class in java (Program)

1112

Program:

 public class WrappertoStringMethod {

   public static void main(String args[]) {
      Integer x = 15;

      System.out.println(x.toString());
      System.out.println(Integer.toString(12));
   }
}

Output:

15
12
Press any key to continue . . .

This Particular section is dedicated to Programs only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.