Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package preexer1;
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner in = new Scanner(System.in);
- display();
- int log = in.nextInt();
- if(log==1){
- PreExer1 db = new PreExer1();
- System.out.print("Username: ");
- String user = http://in.next ();
- System.out.print("Password: ");
- String pass = http://in.next ();
- db.login(user, pass);
- }
- else if(log==2){
- PreExer1 db = new PreExer1();
- db.register();
- }
- }
- /**
- *
- */
- public static void display() {
- System.out.println("1. Login");
- System.out.println("2. Register");
- System.out.println("Choice:");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement