Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public boolean borrow(String borrowerID, char status) {
  2.  
  3. if (borrowerID.matches("([A-Z]{1})([0-9]{3})")) {
  4. if (status == 'A');
  5. return true;
  6.  
  7. if (status == 'H' && borrowerID == rQue[0]){
  8. return true;
  9.  
  10. }
  11. }
  12.  
  13. else {
  14.  
  15.  
  16. return false;
  17. }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement