Advertisement
Guest User

Untitled

a guest
Oct 4th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1.  
  2. package preexer1;
  3.  
  4. import java.util.Scanner;
  5. public class Main {
  6.  
  7.  
  8. public static void main(String[] args) {
  9. Scanner in = new Scanner(System.in);
  10.  
  11. display();
  12. int log = in.nextInt();
  13.  
  14. if(log==1){
  15. PreExer1 db = new PreExer1();
  16. System.out.print("Username: ");
  17. String user = http://in.next ();
  18. System.out.print("Password: ");
  19. String pass = http://in.next ();
  20. db.login(user, pass);
  21. }
  22. else if(log==2){
  23. PreExer1 db = new PreExer1();
  24. db.register();
  25. }
  26.  
  27. }
  28.  
  29. /**
  30. *
  31. */
  32. public static void display() {
  33. System.out.println("1. Login");
  34. System.out.println("2. Register");
  35. System.out.println("Choice:");
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement