Assignemnt #23 and More User Input

Code

    /// Name: Brian Phillips
    /// Period: 5
    /// Program name: More User Input
    /// File Name: UserInputData.java
    /// Date Finished: 10/8/2015 
import java.util.Scanner;
  
   public class UserInputData
   {
       public static void main( String[] args )
        {
           String first_Name, last_Name, login;
           int grade, student_Id;
           double gpa;
   
           Scanner keyboard = new Scanner(System.in);
   
           System.out.print( "First name: " );
           first_Name = keyboard.next();
           
           System.out.print( "Last name: " );
           last_Name = keyboard.next();
          
           System.out.print( "Grade (9-12): " );
           grade = keyboard.nextInt();
           
           System.out.print( "Student ID: " );
           student_Id = keyboard.nextInt();
           
           System.out.print( "Login: " );
           login = keyboard.next();    
           
           System.out.println( "GPA (0.0-4.0): " );
           gpa = keyboard.nextDouble();
   
           System.out.println( "Your information:" );
           System.out.println( "    Login: " + login);
           System.out.println( "    ID: " + student_Id);
           System.out.println( "    Name: " + last_Name + ", " + first_Name);
           System.out.println( "    GPA: " + gpa);
           System.out.println( "    Grade: " + grade);
           
       }
   }
    
    

Picture of the output

UserInputData.html