Mega Code Archive
Categories
/
Java Tutorial
/
Data Type
The modern way to construct an Integer object that has the value 100
public class MainClass { public static void main(String args[]) { Integer iOb = 100; // autobox an int System.out.println(iOb); } } 100