Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean borrow(String borrowerID, char status) {
- if (borrowerID.matches("([A-Z]{1})([0-9]{3})")) {
- if (status == 'A');
- return true;
- if (status == 'H' && borrowerID == rQue[0]){
- return true;
- }
- }
- else {
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement