Simple fun with Java