I have just started learning Java so I came to int and I don't realy get what should i do.
And i would also be happy is some one explain me how classes work.
Thx four your time.
int is a data type in Java. It allows you to store whole numbers like -7, 0 or 46; but not 5.5 because that's not a whole number.
For the lesson you only need to put any whole number (as long as it's not too big or too small) between the parenthisis of
System.out.println(); The programm will then print this number to the console.
There are more data types that will be covered in the course. For now you also don't have to worry about classes, they will be covered later.
Thank you very much for your time.
if u can watch mehran salami's stanford university cs106A
lecture 5,variable int is well explained