Here is my CSV file: marks.csv and it contains with the student number on the left and the marks on the right:

```
B00123,55
B00783,35
B00898,67

```

I need to be able to search through this file and find the maximum mark and the minimum mark. I have this code that returns the values but I don't know what to do afterwards:

```
public static void MaxAndMin()
{
  // .csv files are comma separated
  String fileName = "src\\data\\marks.csv";
  File file = new File(fileName);

  try 
  {
      Scanner inputStream = new Scanner(file);

      while(inputStream.hasNext())
      {
          String data = inputStream.next();
          String [] values = data.split(",");
          int mark = Integer.parseInt(values[1]);
          System.out.println(mark);      
      }

      inputStream.close();

  } 
  catch (FileNotFoundException ex) 
  {
      Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
  }
}

```

And this returns the following:

```
 55
 35
 67

```

What can I try next?