+ 1

Not entirely sure what integer means in Java. I have a vague description to fit to it but AGH ITS BUGGING ME.

Such as: int var = 66 Could someone provide with a detailed description that I can run off of? The Java tutorial either never told me, or I didn't notice it.

5th Sep 2018, 5:35 AM
Monstertrap
3 ответов
+ 1
An integer in programming is a data type used to hold a value of a whole number (such as 2, 56, or -51). In the example you provided, you created a variable with type int named var, which was given an integer value to hold.
5th Sep 2018, 5:48 AM
Faisal
Faisal - avatar
+ 1
Thank you, Faisal and Jason!
5th Sep 2018, 5:49 AM
Monstertrap
+ 1
By default, the int data type is a 32-bit signed two's complement integer, which has a minimum value of -2^31 and a maximum value of 2^31. Basically whole numbers between -2 billion and positive 2 billion
5th Sep 2018, 5:49 AM
JME