Hi
Spec : jdk1.7, Mongodb 3.x Windows- 64 bit
I am a newbiand request anybody to refer me URL or Snippet of example code on using "mongo-java-driver-3.1.0" API for the following
I have a collection as shown in the image and need to fetch all of the Data using a cursor.
This is what i have done using 'MongoDatabase' API i have the connection ready with Host/port
MongoDatabase database = client.getDatabase("DB");
MongoCollection<Document> collection = database.getCollection("SSS");
I need to fetch and display all the data using system.out.println .... ?????? How to proceed.
with regards
Karthik