Add java practise codes