Code snippets for Java 106 students for Midterm and Final review