Sample code for students in my Java courses