Added java solution.