// new Integer(i) is deprecated in java //therefore you can use the below mentioned technique int iInt = 10; Integer iInteger = Integer.valueOf(iInt);