Variables and types

First things we need to know before programming in Java:

Variables:

It is a kind of container where you can store data of any type, in java you must to declare the type of variable, unlike other programming languages like python.

Types:

            Symple:

            Numeric:

Int/byte/short/long: A variable to store integral values such as 3,-6,7.

Double/float: A variable to store decimal values such as 0.7, 5.6.

Logics:

Boolean: These variables only can store two values, 0 or 1, that means true or false.

Char: A variable to store just a character.

Compound:

String: a variable to store a collection of characters.

Arrays and piles: It is like a “container of container” where you can store several data of the same type.