Added java example