binibiningtinamoran

StudentUtilsTester

Oct 25th, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. public class StudentTester {
  2.  
  3.     public static void main(String[] args) {
  4.  
  5.         Student s1 = new Student("ABC", "XYZ", "California", "1234");
  6.         System.out.println(StudentUtils.checkInformation(s1)); // print toString()
  7.        
  8.         System.out.println();
  9.  
  10.         Student s2 = new Student("FIRST","LAST", "SWEDEN", "abc123ewf8f98f89");
  11.         System.out.println(StudentUtils.checkInformation(s2)); // print null
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment