read INTs from .txt in CMD (formatted txt) java
<p>I have to write a program for a project. THe program itself works perfectly. But I have an additional requirement:</p>

<p>The programm needs to be open over the console via java MyProgramm input.txt 2 3
(This is an example input statement, where input is a txt file that contains a single number followed by pairs of two numbers(ints). Pairs are separated by a line break, numbers of the pairs are separated by space).</p>

<p>I need to read these numbers into an int and an int array[][] and two ints.</p>

<p>How can I achieve this? I already solved a similar problem where all numbers where single ints each on a new line. But here I'm stuck.</p>

<p>There are some solutions here, but none seems to suit my specific problem!?</p>

<p>Thanks,
Dave</p>
