Advertisement
Guest User

Untitled

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