public static void main(String[] args) {
		sc = new Scanner(System.in);
		do{
			System.out.print("Username: ");
			owner = sc.nextLine();
			System.out.print("Password: ");
			String p = sc.nextLine();
			boolean a = (JDBC.logIn(owner, p));
			if (!a) {
				System.out.println("Wrong username or password.");
				continue;
			}
			else
				break;
		}while(true);
		
		System.out.println("Logged in as: " + owner.toLowerCase());
		System.out.println("Press 1 to choose existing character.");
		System.out.println("Press 2 to create a character.");
		System.out.println("Press 3 to delete a character.");
		System.out.println("Press 4 to see your characters.");

		int x = 0;
		sc = new Scanner(System.in);
		String number = sc.nextLine();
		if (isInt(number))
			x = Integer.parseInt(number);

		
		switch (x) {
		case 1:
			charList = new ArrayList<String>();
			System.out.println("Please choose your character from the list below: ");
			System.out.print("Character number: ");
			int a = sc.nextInt();
//			String name = charList.get(a);
			break;
		case 2:
			new CreateCharacter();
			break;
		case 3:
			System.out.println("Which character do you want to delete?");
			System.out.print("Character number: ");
			String b = sc.nextLine();
			if (isInt(b))
				c = Integer.parseInt(b);
			if (c<1)
				System.exit(0);
			JDBC.deleteCharacter(charList.get(c-1));
		case 4:
			charList = JDBC.characterList(owner);
			System.out.println(charList);
		default:
			break;
		} 
	}