String s = String.valueOf(i);
int i = Integer.parseInt(s);
Make a note because you use it often and forget it often.
Recommended Posts