chapter 4 java examples
Merge pull request #312 from miniway/master

chapter 4 java examples