Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package homework6problem1;
- import java.io.*;
- import java.util.*;
- public class Main {
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- int exit = 0;
- if(exit == 'e');{
- System.out.println("Enter Command:");
- System.out.println("L - Login");
- System.out.println("N - New User");
- System.out.println("S - Show All User Data");
- System.out.println("E - Exit");
- String x= input.nextLine();
- if(x.charAt(0) == 'L' || x.charAt(0) == 'l'){
- System.out.println("username:");
- int username = input.nextInt();
- System.out.println("password:");
- int password = input.nextInt();
- }
- if (x.charAt(0) == 'N' || x.charAt(0) == 'n'){
- int usernames[]={0,0,0,0,0,0} , passwords[]={0,0,0,0,0,0};
- if (x.charAt(0) == 'S' || x.charAt(0) == 's'){
- System.out.println(users);
- System.out.println(passwords);
- }
- if (x.charAt(0) == 'E' || x.charAt(0) == 'e'){
- System.out.println("Good Bye");
- exit =+ 'q';
- }
- else{
- System.out.println("input not understood");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement