Int to String in Java

Int to String:
To convert int to String, use
toString(int i)
method of Integer wrapper class.

public class StringToInt{
        public static void main(String args[]){
               
                //int variable
                int i = 11;
                String str = Integer.toString(i);
               
                System.out.println("int to String : " + i);
        }
}


Output :
int to String : 11