java local mongodb database code example
Example 1: collection not getting initiated mongo android
MongoClient mongoClient = new MongoClient(new MongoClientURI("mongodb://localhost:27017"));
Example 2: saving to a mongodb java
db.yourCollection.save( { stringAttributesExample: "book", intergerAttributeExample: 40 } )