Mega Code Archive

 
Categories / Java / Data Type
 

Integer class creates primitives that wrap themselves around data items of the int data type

public class MainClass {   public static void main(String[] args) {     int i = 17;     Integer i2 = new Integer(i);     System.out.println(i2.intValue());   } }