by Dinesh Thakur

This Convert int to string java example shows how to convert int to String in Java.


Here is the Java Example for the program IntToStringJavaExample :

public class IntToStringJavaExample

     public static void main(String args[])
     int a = 2;
     // For Converting integer to String use wrapper class method    toString(int a)
    String str = Integer.toString(a);
   System.out.print("Convert integer to String : " + a);

Convert Int to String Java Example