Write Java code for fun