Demo(From Head First Java)