Java examples for Language Basics:Variable
Convert Integer to String
public class Main { public static void main(String[] args) { Integer intObj = new Integer(10); //w w w . ja v a 2s. c o m //use toString method of Integer class to convert Integer into String. String str = intObj.toString(); System.out.println("Integer converted to String as " + str); } }