The Java driver for MongoDB
The MongoDB Java Driver.
Using the Java driver is very simple. First, be sure to include the driver jar mongo.jar in your classpath.
The following code snippets come from the QuickTour.java example code that can be found with the driver source.