update function in java 2 and the style
Merge branch 'master' of github.com:yangdong/yangdong.github.io