Integer

Edit on Github instead

The Integer class wraps primative ints into Integer objects. For example:

Integer i = new Integer(7);
// Now, i has the value 7
int j = 10;
Integer in = new Integer(j);
Now, in has the value 10

Suggest changes

Related links

URL Topic Source