Transform all elements of a list of strings to upper case
<p>I want to transform a list of strings to upper case.</p>

<p>Here's my code to do this:</p>

<pre class="lang-java prettyprint-override"><code>List&lt;String&gt; list = Arrays.asList("abc", "def", "ghi");
List&lt;String&gt; upped = list.stream().map(String::toUpperCase).collect(Collectors.toList());
</code></pre>

<p>Is there a simpler/better way to do this?</p>