Chenglong's java demo