How to use APOC in java

As you are connecting to a Neo4j server via the driver, you have to install APOC on the server.

And then you can just call them like any other Cypher statement.

If you have full control of your connection and data, in most cases you don't need the apoc procedures just call the appropriate Cypher instead. E.g. CREATE (n:Node {name:$name}) etc