Java samples for the course