Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package User;
- import marios.Database;
- import java.util.Scanner;
- public class User {
- private
- String username;
- String password;
- User() {
- username = "N/A";
- password = "N/A";
- }
- void Register() {
- }
- void LogIn() {
- }
- void Display() {
- String ans;
- Scanner keyboard = new Scanner(System.in);
- System.out.println("If you are a new user type 'yes' to register, otherwise type 'no' to log in.");
- ans = keyboard.next();
- String Exit = null;
- do {
- switch (ans) {
- case "yes":
- System.out.println("Please type your Username and your Password to register:");
- Register();
- break;
- case "no":
- System.out.println("Type your Username and Password to continue");
- LogIn();
- break;
- }
- System.out.println("If you want to exit type: y");
- Exit = keyboard.next();
- }while(!Exit.equals("y"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement