This is the way we write the demo, java 2s.com