Exercise of Head First Java