add java basic codes