Added few java code