Update Lesson3HW1.java

add boolean var