add Java practice