Load csv file into neo4j with java code

how to load the csv file into neo4j using java code and what dependencies can i use to load the file.

You just need the Java Bolt driver Neo4j documentation - Neo4j Documentation
Since LOAD CSV is just Cypher, you'd use the driver as you would for any Cypher queries Neo4j documentation - Neo4j Documentation