Advertisement
Guest User

ggd account

a guest
Jan 24th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. package arrays;
  2.  
  3. public class Account2
  4. {
  5. String username;
  6. int password;
  7. boolean spaceAvailable;
  8. boolean admin;
  9.  
  10. public Account2(String user, int passcode, boolean administrator)
  11. {
  12. this.username = user;
  13. this.password = passcode;
  14. this.admin = administrator;
  15.  
  16. }
  17.  
  18. public boolean accountsAvailable(int loginNumber)
  19. {
  20. spaceAvailable = false;
  21. if (loginNumber < 33)
  22. {
  23. spaceAvailable = true;
  24. return spaceAvailable;
  25. }
  26.  
  27. else
  28. {
  29. return spaceAvailable;
  30. }
  31. }
  32.  
  33.  
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement