How to rewrite this code using lambdas and streams?
<pre><code> public class Java_03 {
 public static void main(String[] args) {
    List&lt;Integer&gt; listOfEven = Stream.iterate(1, i -&gt; i+1)
                                    .filter(i -&gt; i % 2 == 0)
                                    .limit(10)
                                    .collect(Collectors.toList());
    List&lt;Integer&gt; listOf3 = Stream.iterate(1, i -&gt; i+1)
                                    .filter(i -&gt; i % 3 == 0)
                                    .limit(10)
                                    .collect(Collectors.toList());

    // how to rewrite this code using lambdas and streams ?
    Map&lt;Integer, Integer&gt; map = new TreeMap&lt;&gt;();
    int i = 0;
    for (int a : listOf3) {
        map.put(listOfEven.get(i), a);
        i++;
    }
    System.out.println(map);
 } 
}
</code></pre>

<p>I want to write this code using lambdas and stream I've tried alot but failed. please help.</p>

<p>map should contain: key - multiplication table of 2 and value - multiplication table of 3
for eg - {2=3, 4=6, 6=9, 8=12, 10=15, 12=18, 14=21, 16=24, 18=27, 20=30}</p>