Advertisement
Sajib_Ahmed

Student_info

Mar 29th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.24 KB | None | 0 0
  1.  
  2. package class_work;
  3.  
  4. import java.util.Scanner;
  5. public class Student_info {
  6.    
  7.     private String login_id;
  8.     private String password;
  9.      
  10.     public static void main(String[] args)
  11.     {
  12.         String login="XYZ123";
  13.         String pass="123456";
  14.         Scanner Input=new Scanner(System.in);
  15.         String l=Input.nextLine();
  16.         String p=Input.nextLine();
  17.         if((login.equals(l))&&(pass.equals(p))){
  18.             Student_info obj=new Student_info();
  19.             obj.studentd();
  20.             obj.regd();
  21.             obj.coursed();
  22.            
  23.         }
  24.         else
  25.         {
  26.             System.out.println("NOT FOUND\n");
  27.         }
  28.                
  29.        
  30.     }
  31.  
  32.    public void studentd() {
  33.         System.out.println("Student Details: ");
  34.         System.out.println("\tName: Abdul Aziz\n\tID: 181-15-3000\n\tCGPA: 3.69");
  35.        
  36.     }
  37.  
  38.    public void regd() {
  39.         System.out.println("Registration Details:");
  40.         System.out.println("\tSemester: Spring\n\tYear: 2019");
  41.        
  42.     }
  43.  
  44.    public void coursed() {
  45.         System.out.println("Course Details:");
  46.         System.out.println("\tCourse code \tSection\n\tCSE214 \t\tD\n\tCSE213 \t\tD\n\tCSE215 \t\tD");
  47.        
  48.     }
  49.    
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement