Hi, How to convert into to String in Java?
Thanks
Hi,
For this following code can be used:
Integer.toString(i);
Here is the complete example:
class IntegerToString
{
public static void main(String[] args)
{
System.out.println("Converting Integer to String");
Integer i= new Integer(10);
String s = Integer.toString(i);
System.out.println(s);
}
}
See the tutorial Convert an Integer into a String.
Thanks