title: convert List<Object> to Map<K,V> in java
body: <p>I am getting result in  List of List format which I will process to get a Map. 
  Twist is that inner list will contain 2 different type of objects. Object of type K will be on index 0 and another object of type V will be on index 1. </p>
  
  <pre><code>List&lt;Object&gt; lst = new ArrayList&lt;&gt;();
  lst.add(new KeyObject());  
  lst.add(new ValueObject()); 
  
  List&lt;List&gt; res = new ArrayList&lt;&gt;();
  res.add(lst); 
  </code></pre>
  
  <p>Now I want to construct a Map&lt; K, V> from above <strong>res</strong> List using java 8 approach. Any suggestions?</p>