c# / LINQ .Select in Java (alternative)
<p>In C# I have the following code:</p>

<pre><code>string[] exampleStrings = Console.ReadLine().Split(' ');          // C#
int[] exampleInts = exampleStrings.Select(int.Parse).ToArray();
</code></pre>

<p>The <code>.Select</code> can also be like this: <code>.Select(x =&gt; int.Parse(x))</code></p>

<p>That way I get really quickly an <code>int[]</code>. <br/>
I started learning Java a few days ago and I am yet to get used to it. <br/>
I have the following code in Java:</p>

<pre><code>Scanner scan = new Scanner(System.in);                            // Java
String[] javaStrings = scan.nextLine().split(" ");
</code></pre>

<p>And I would like to convert this <code>String[] javaStrings</code> into <code>int[] foo</code>. If there is no way to do it like in C# I think then a loop will maybe be the only way.<br/>
Thank you in advance.</p>