// new Integer(i) is deprecated in java
//therefore you can use the below mentioned technique
int iInt = 10;
Integer iInteger = Integer.valueOf(iInt);
public class IntToIntegerExample {
public static void main(String[] args) {
int i = 10;
Integer intObj = new Integer(i);
System.out.println(intObj);
}
}