daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public boolean validate stayType(){
  2.   String[] stayTypes = { "Hostel", "Day Scholar"} ;
  3.   for(String s: stayTypes)
  4.     if(s.equalsIgnoreCase(stayType)
  5.       return true;
  6.   return false;
  7. }
  8.  
  9.  
  10.  
  11. public boolean validate stayType(){
  12.   if(stayType.equalsIgnoreCase("Hostel") || stayType.equalsIgnoreCase("Day Scholar"))
  13.     return true;
  14.   else
  15.     return false;
  16. }
RAW Paste Data
Top