Check out example codes for "how to convert primitive int to Integer in java". It will help you in understanding the concepts better.
Code Example 1
public class IntToIntegerExample {
public static void main(String[] args) {
int i = 10;
Integer intObj = new Integer(i);
System.out.println(intObj);
}
}
Learn ReactJs, React Native from akashmittal.com