Flashcard style java application