Added java solutions