add examples for java interop