Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class SLAccount2Test {
- public static void main(String[] args) {
- Scanner key = new Scanner(System.in);
- System.out.print("Username: ");
- String username = key.next();
- System.out.print("Password: ");
- String password = key.next();
- do {
- password = key.nextLine();
- } while (!SecondLifeAccount2.goodPassword(password));
- System.out.print("Date of birth:\nMonth: ");
- int dob = key.nextInt();
- System.out.print("Enter secret question: ");
- String secretQuestion = key.nextLine();
- System.out.print("Enter secret answer: ");
- String secretAnswer = key.nextLine();
- SecondLifeAccount2 user1 = new SecondLifeAccount2(username, password,
- dob, secretQuestion, secretAnswer);
- SecondLifeAccount2 user = new SecondLifeAccount2();
- }
- }
Add Comment
Please, Sign In to add comment