connct and save to mongodb using java code example
Example: saving to a mongodb java
db.yourCollection.save( { stringAttributesExample: "book", intergerAttributeExample: 40 } )
db.yourCollection.save( { stringAttributesExample: "book", intergerAttributeExample: 40 } )