title: How can I convert List of LinkedHashMap to List of Custom Object using Java 8
body: <p>How can we convert List&lt;LinkedHashMap&gt; in to List of Custom Object (List&lt;Employee&gt;) using Java 8 Streams.</p>
  <p>Example : List&lt;LinkedHashMap&gt;</p>
  <p>Here name and designation both are LinkedHashmap key. if you copy below snippet in IDE you can have better understand of this List&lt;LinkedHashMap&gt;.</p>
  <pre><code>List&lt;LinkedHashMap&gt; list = new ArrayList&lt;&gt;();
  LinkedHashMap&lt;String, String&gt; linkedHashMap1 = new LinkedHashMap&lt;&gt;((Map.of(&quot;name&quot;,&quot;David&quot;, &quot;designation&quot;,&quot;Senior Software Engineer&quot;)));
  LinkedHashMap&lt;String, String&gt; linkedHashMap2 = new LinkedHashMap&lt;&gt;((Map.of(&quot;name&quot;,&quot;Alex&quot;, &quot;designation&quot;,&quot;Software Engineer&quot;)));
  LinkedHashMap&lt;String, String&gt; linkedHashMap3 = new LinkedHashMap&lt;&gt;((Map.of(&quot;name&quot;,&quot;Jessi&quot;,&quot;designation&quot;,&quot;Lead&quot;)));
  LinkedHashMap&lt;String, String&gt; linkedHashMap4 = new LinkedHashMap&lt;&gt;((Map.of(&quot;name&quot;,&quot;Martin&quot;,&quot;designation&quot;,&quot;Manager&quot;)));
  
  list.add(linkedHashMap1);
  list.add(linkedHashMap2);
  list.add(linkedHashMap3);
  list.add(linkedHashMap4);
  System.out.println(list);
  
  </code></pre>
  <p>Need to convert above List&lt;LinkedHashmap&gt; to List&lt;Employee&gt; Where Employee class has below two fields :</p>
  <pre><code>Class Employee {
  String name;
  String designation;
  }
  </code></pre>
  <p>Expected output :</p>
  <pre><code>[Employee(name = David, designation = Senior Software Engineer), 
  Employee(name = Alex, designation = Software Engineer), 
  Employee(name = Jessi, designation = Lead),
  Employee(name = Martin, designation = Manager)]      
  </code></pre>