add java basic demo and doc