MoreUserInput


import java.util.Scanner;

public class MoreUserInput
{
    public static void main( String[] args )
    {
        String first_name;
        String last_name;
        int grade;
        int id;
        String login;
        int gpa;
        
        Scanner keyboard = new Scanner(System.in);
        
        System.out.print( "Hey there! Let's go through some quick security questions. Whats your first name?");
        first_name = keyboard.next();
        
        System.out.print( "Hey " + first_name + "! So just as a quick confirmation, what's your last name?");
        last_name = keyboard.next();
        
        System.out.print( first_name + " " + last_name + "! Everything looks to be all good in the system, but just in case, let's just go through some other things really quickly. So for starters, what grade level are you in?" );
        grade =keyboard.nextInt();
        
        System.out.print( " Ok, what's your student ID?");
        id = keyboard.nextInt();
        
        System.out.print( "See? This isn't that hard. What's your student login?");
        login = keyboard.next();
        
        System.out.print( "Almost done. So what's your GPA?");
        gpa = keyboard.nextInt();
        
        System.out.println("Login: " + login );
        System.out.println("ID: " + id );
        System.out.println("Name: " + first_name + " " + last_name );
        System.out.println("GPA: " + gpa);
        System.out.println("Grade: " + grade);
        System.out.println(" Ya... this is all going online #yoloshweg :D ");
    }
}
    

Picture of the output

Assignment 23