A sample from <<Head First Java>>