add java learning example