Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void printLogin() {
- int tries = 0;
- int level = 0;
- String username = "";
- String password = "";
- do {
- System.out.println("Username:");
- username = Functions.getString();
- System.out.println("Password:");
- password = Functions.getString();
- tries++;
- if (tries > 3){
- System.out.println("You tried too many times.");
- System.exit(1);
- }
- level = Functions.login(username, password);
- } while (!(level >= 1 && level <= 2));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement