I have to say I don't think much of the assignment.
static int indexOf(String team, ArrayList<NCAATeamStats> teams);
UGH! Instead, you should have a class that, in turn, holds the ArrayList, and then have a method on that class that does the lookup.
And why return the integer index of the matching team? Why not instead return a reference to that actual NCAATeamStats
object? (Or a null if not found, of course.)
I don't think your instructor is taking a very good Object Oriented approach here.
Use the delimeter string “[:\n\r0-9]+”.
Just read the file one line at a time and split each line on the colons, giving you a String array. Then arr and arr[3[ will contain the names of the winning and losing teams. Presto.
Overall, I give the instructor
no better than a C+ for this assignment.