-1
private static int[] loadMarks(String fileName) throws IOException {

    int[] marks = new int[94];  
    /* complete */
    Scanner input = new Scanner(fileName);
    for(int i=0;i<94;i++) {
        marks[i]=input.nextInt();
    }
    return marks;
}
Patrick
  • 5,526
  • 14
  • 64
  • 101

1 Answers1

0
Scanner input = new Scanner(new File(fileName));

Try this, if your goal is to parse the contents of the file and not the actual string fileName

Tyler
  • 955
  • 9
  • 20