my some java book example code