Code samples generated while practicing java programming