title: How to add new key value to existing List Map object in java
body: <p>In below code am getting map of documents i want to add new key &amp; value to documents object.</p>
  
  <pre><code>public List&lt;Map&lt;String, Object&gt;&gt; getDocuments() {
      String sql = "Select * from docs";
      List&lt;Map&lt;String, Object&gt;&gt; Documents = jdbcTemplateObject.queryForList(sql);
      return Documents;
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>[{Id=DOC10,Name=Test Document,Date=10-12-17}],
  [{Id=DOC11,Name=Sample Document,Date=15-12-17}]
  </code></pre>
  
  <p>How can I add a new k,v to this <code>List&lt;Map&gt;</code> object so that output looks like this?</p>
  
  <pre><code>[{Id=DOC10,Name=Test Document,Date=10-12-17,Access=true}],
  [{Id=DOC11,Name=Sample Document,Date=15-12-17,Access=true}]
  </code></pre>