Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class AccountLogin
- {
- static int i;
- public static void main(String []args)
- {
- String [] username = new String[33];
- int [] password = new int[33];
- int tasos = 0;
- while(tasos == 0);
- {
- Scanner in = new Scanner(System.in);
- String command = in.nextLine();
- command = command.toLowerCase();
- System.out.println("Would you like to (login), (create) an account, or (exit)?");
- if(command.equals("login"))
- {
- }
- else if(command.equals("create"))
- {
- Scanner userInput = new Scanner(System.in);
- String user = in.nextLine();
- System.out.println("");
- username [i] = user;
- i++;
- Scanner passInput = new Scanner(System.in);
- int pass = in.nextInt();
- System.out.println("");
- password [i] = pass;
- i++;
- }
- else if(command.equals("quit"))
- {
- System.out.println("Thank you for your time");
- tasos++;
- }
- else
- {
- System.out.println("Sorry don't understand");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement