title: How to insert and get an ArrayList<String> from a mongoDB collection?
body: <p>Hi im new to mongodb java driver and need help trying to insert and get an arraylist.</p>
  <p>what i want to do is something like this</p>
  <pre><code>uuid: samplexxxxxxxxx   (this is the index)
  user:sam
  profiles: [ID1,ID2,ID3,ID4]   &lt;- THIS
  ...
  </code></pre>
  <p>I appreciate suggestions and opinions, if it can be done better too. I am new to both java and mongo.</p>