Advertisement
Guest User

Untitled

a guest
Jun 21st, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.19 KB | None | 0 0
  1.  
  2. package homework6problem1;
  3. import java.io.*;
  4. import java.util.*;
  5. public class Main {
  6.     public static void main(String[] args) {
  7.         Scanner input = new Scanner(System.in);
  8.         System.out.println("Enter Command:");
  9.         System.out.println("L - Login");
  10.         System.out.println("N - New User");
  11.         System.out.println("S - Show All User Data");
  12.         System.out.println("E - Exit");
  13.  
  14.         String x = input.nextLine().toLowerCase();
  15.                 while(true){
  16.         if(x.charAt(0) == 'l'){
  17.             System.out.println("username:");
  18.             String username = input.nextLine();
  19.             System.out.println("password:");
  20.             String password = input.nextLine();
  21.  
  22.         }else if (x.charAt(0) == 'n'){
  23.             int usernames[]={0,0,0,0,0,0} , passwords[]={0,0,0,0,0,0};
  24.  
  25.         }else if (x.charAt(0) == 's'){
  26.             System.out.println("Id user 1: peter999 password: cucuMber9");
  27.                         System.out.println("Id user 2: mary7 password: banA10na");
  28.                         System.out.println("Id user 3: Hillary password: seC5rets");
  29.                         String x = r;
  30.         }else if (x.charAt(0) == 'e'){
  31.             System.out.println("Good Bye");
  32.             System.exit(0);
  33.  
  34.         }else{
  35.             System.out.println("input not understood");
  36.         }
  37.     }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement