Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. private class PJATK{
  2.  
  3.     String student;
  4.  
  5.     private Boolean studentOfTheYear(){
  6.        
  7.         if(student == "Bartosz Rogowski"){
  8.             return true;
  9.         }
  10.         else{
  11.             throw new NoStudentOfTheYearException();
  12.         }  
  13.         return false;                                  
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement