Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- System.out.println("What is your name ");
- String name = scanner.nextLine();
- System.out.println("How old are you " );
- int age = scanner.nextInt();
- scanner.nextLine();
- System.out.println("Tell me your goals ");
- String goals = scanner.nextLine();
- System.out.print("Hello " + name);
- System.out.println("You are "+age+ " years old ");
- System.out.println("Your goals are " +goals);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement