Professional Documents
Culture Documents
Args Age User - Input: Import Public Class Public Static Void Int New
Args Age User - Input: Import Public Class Public Static Void Int New
Scanner;
public class Figuring_it_out {
public static void main(String[]args){
int age; // This makes the variable age
Scanner user_input = new Scanner(System.in); // This is making it so that the
computer can read inputs
// basically the thing is "user_input" and it is the keystrokes you make that
java records
inputted
System.out.println("Your age is: " + age + " if you are not lying.");// prints
// the pluses let you add strings and ints to the same line
int plus_six = age + 6; // adds 6 to the number that is age
System.out.println("Your age is: " + plus_six + " six years from now, if you are
not lying."); // prints
}
}