ints

Edit on Github instead

ints are whole numbers, or integers, in Java, like 2, -39, or 19391.

Assigning an int to a variable works like this:

int i = 5;
int j = 30395;
int k = -4;

Java stores those values exactly in the computer's memory. FIXME note about bits/bytes/size params?

Suggest changes

Related links

URL Topic Source