Revision QA program in Java