How to convert int to Integer

int iInt = 10;
Integer iInteger = Integer.valueOf(iInt);

P.S. Answer edited due to comments pointing out an issue with initial suggested solution.

Leave a Comment