a little Java app, exam-related