Java arraylist project String and Ints : <p>I have to make a project using an array list and reading data from a file
The file will contain input that looks something like this: </p>

<p>4</p>

<p>34 F</p>

<p>23 M</p>

<p>32 M</p>

<p>43 F</p>

<p>The 4 refers to how many racers there are; the numbers represent that racer's score and the F and M represent gender
I have to output:
Lowest score overall,
Lowest female score,
Lowest male score</p>

<p>So from the data I inputted above, it would output</p>

<p>23</p>

<p>34</p>

<p>32 </p>

<p>This is what I have. I am in an intro java class and so it's not supposed to be a difficult project. I have no idea what to do. Please help. </p>

<pre><code>import java.util.Scanner;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;

public Class Num

public static void main(String[] args) throws IOException {
    Scanner inFile = new Scanner(new File("input"));

    ArrayList&lt;String&gt; list = new ArrayList&lt;&gt;();
    ArrayList&lt;Integer&gt; scores = new ArrayList&lt;Integer&gt;();

    int time = 0;
    String gender = "";

    while (inFile.hasNext()){
        list.add(inFile.nextLine());
        scores.add(inFile.nextInt());
    }
    int num = list.size();


}

}
</code></pre>
