Java coding problem


#1

i'm newby in java coding , so i can't understand the "int" data type is used for what , can someone explain it easly please


#2

Maybe you don't understand the variable concept.
A variable is like a box that contain something. It has a content (the something), a type (the form of the box) and a name (a label printed on the box).

In your case, int is a type (like a cubic or spheric box) that can contain only number without comma.

If you'd like more precise description about that type, go read Oracle documentation.


#3

thank you so match :smile:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.