Java list map function not working
<pre><code>myList
.stream()
.map((question) -&gt; {                    
     question.setQuestionId(UUID.randomUUID().toString());
     return question;
});
</code></pre>

<p>Following java code is not getting into the map function. Can someone please point me to what am I doing fundamentally wrong here? myList is an ArrayList with some elements in it.</p>