why the compiler is changing the value of int while conversion to string and how it gets it new value.
int n = 1003456;
String str = Integer.toString(n);
System.out.println(str.length() + " " + n + " " + str);
int m = 0013456;
String string = Integer.toString(m);
System.out.println(string.length() + " " + m + " " + string);
the output of the above program is :
7 1003456 1003456
4 5934 5934
the first line of the output is clear but the second line of output shows the size of integer is 4 (but i think it should be 5 if m is 13456).how the new value of m is changed. how should i manipulate the code to get the my value of m.