Advertisement
TsetsoP

Students

Oct 11th, 2021
1,583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1. import java.sql.SQLOutput;
  2.  
  3. public class Students {
  4.     public String name;
  5.     public String family;
  6.     public int number;
  7.  
  8.     public void information() {
  9.         System.out.println("====================================");
  10.         System.out.println("Name : " + this.name);
  11.         System.out.println("Family : " + this.family);
  12.         System.out.println("Course number : " + this.number);
  13.         System.out.println("-----------------------------------");
  14.     }
  15.  
  16.     public Students(String name, String family, int number) {
  17.         this.name = name;
  18.         this.family = family;
  19.         this.number = number;
  20.     }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement