title: List of all collections in mongo database in java
body: <p>how can I get a list of all the collections in the database?</p>
  
  <ul>
  <li>database - mongodb;</li>
  <li>language - java;</li>
  <li>ide - eclipse;</li>
  </ul>