Parse and format a number to decimal
public class Main { public static void main(String[] argv) throws Exception { int i = Integer.parseInt("1023"); String s = Integer.toString(i); System.out.println(s); } }