MoreUserInputofData

Code

  import java.util.Scanner;
  
  public class MoreUserInputofData
  {
      public static void main( String[] args )
      {
          String FirstName, LastName, LoginName;
          int Grade, StudentID;
          double GPA;
 
         Scanner keyboard = new Scanner(System.in);
          
         System.out.println( "Its very important you tell me this for no reason" );
          
         System.out.print( " First name: " );
         FirstName = keyboard.next();
         
         System.out.print( " Last name: " );
         LastName = keyboard.next();
          
         System.out.print( " Grade: ");
         Grade = keyboard.nextInt();
         
         System.out.print( " Student ID: " );
         StudentID = keyboard.nextInt();
         
         System.out.print( " Login: ");
         LoginName = keyboard.next();
         
         System.out.print( " GPA: " );
         GPA = keyboard.nextDouble();
          
         System.out.println( "Your Information: " );
         System.out.println( " Login: " + LoginName);
         System.out.println( " ID: " + StudentID);
         System.out.println( " Name: " + LastName + FirstName );
         System.out.println( " GPA: " + GPA );
         System.out.println( " Grade: " + Grade );
      }
  }

MoreUserInputofData

Assignment 23