Java Problems/Java Basics/input.java
<gh_stars>0import java.util.Scanner;

/**
 * input
 */
public class input {

    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            System.out.print("Enter your lucky number: ");
            int num1 = sc.nextInt();
            System.out.println("Your lucky number is: " + num1);
            System.out.print("Enter your name: ");
            String name = sc.next(); //String input
            System.out.println("Your name is " + name);
            System.out.println("How are you today?");
            String lineInput = sc.nextLine(); //Whole line input
            System.out.println("You are "+lineInput+" today");
        }
    }
}