Updated TrueFalse.java with complete code.