Hi all;
I have some difficalty to write some method in read from file.I write a method of reading from file that contains grades obtained by students in 4 different courses.and this method reads these values and prints the minimum, maximum and average of grades for each student. It should also print the same for all the students. I write the method of printing avarage and also i try to write min and max method but when I compile there no min and max grade . can you explan to me what should i do.
i put this code of finding min and max in readFromFile method
for(int i=1;i<arr.length;i++)
{
if ( arr[i] > max ) max = arr[i];
}
System.out.println( max);
}
for(int i=1;i<arr.length;i++)
{
if ( arr[i] < min ) min = arr[i];
System.out.println(min);
}