






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







All the basics knowledge needed for becoming a programmer
๏ง - Variables are the way the program stores the informations. ๏ง These informations can be Input Data, Output Data or a Support Variable that we use to keep data while the program is doing other operations.
๏ง - All basics mathematical operations can be performed in Java(+ - / *). ๏ง - Advanced operations can be used adding libraries
๏ง - calculator uses numbers and the operation we want to perform ๏ง โ11โ โ+โ โ12โ ๏ง - The result of the operation ๏ง โ33โ
๏ง - We use a flowchart before starting code so we have a better understanding of the sequence of operation we want the code to perform.
Int x;
X is an integer variables and stores 10
Y is an integer variable and stores 12
Output we give the result of x+y as output
Int x= 10;
Int y= 12;
x+y;
๏ง - Input for the calculator are numbers and the operation we want to perform ๏ง โ1โ โ+โ โ2โ ๏ง - The output is the result of the operation ๏ง โ3โ
๏ง Scanner console = new Scanner(System.in); -> lets the data inserted from console go to code ๏ง int x = console.nextInt(); -> saves the integer in the variable X that sent by pressing โEnterโ