You see the following code to convert int to string in java:
package com.developerhelpway.conversion;
public class IntegerToStringConversion {
/**
* @param args
*/
public static void main(String[] args) {
int intnum = 125;
String strnum = String.valueOf(intnum);
System.out.println("Integer Num: " + intnum);
System.out.println("String Num: " + strnum);
}
}
Output:
Integer Num: 125
String Num: 125