Command line implementation of a flash card program in java