Simple flashcard tool in Java