Java 8 convert String of ints to List<Integer>
<p>I have a String:</p>

<pre><code>String ints = "1, 2, 3";
</code></pre>

<p>I would like to convert it to a list of ints:</p>

<pre><code>List&lt;Integer&gt; intList
</code></pre>

<p>I am able to convert it to a list of strings this way:</p>

<pre><code>List&lt;String&gt; list = Stream.of("1, 2, 3").collect(Collectors.toList());
</code></pre>

<p>But not to list of ints.</p>

<p>Any ideas?</p>