adding usage example for java