Java Integer toString
Chapter:
Miscellaneous
Last Updated:
30-03-2017 19:13:54 UTC
Program:
/* ............... START ............... */
public class JavaIntegerToString {
public static void main(String[] args) {
int number = 23849;
String numberString = Integer.toString(number);
System.out.println(numberString);
}
}
/* ............... END ............... */
Output
Notes:
-
The Integer class has a static method that returns a String object representing the specified int parameter.
Tags
Integer toString, Java, Miscellaneous