Added java sourc code