Q:

Java Scanner input into int and string arrays

If someone would be kind enough to give me a hand with this program it would be appreciated, it accepts multiple students names and grades using a Scanner and then puts them into 2 arrays, Students and Scores.  Then it will print out like the following...
Max. Grade = 98 (Lauren)
Min. Grade = 50 (Joe)
Avg. Grade = 83.9
/* Chris Brocato
 *  10-27-15
 * This program will read the students names and scores using a Scanner and use two arrays to 
 * show the grade and name of the highest and lowest scoring student as well as the average grade.*/

import java.util.*;

public class StudentCenter {

    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);
        System.out.print("Please enter the number of students: ");
        int students = console.nextInt();
        String[] name = new String[students];
        int[] scores = new int[students];

        int min = 0; int max = 0; int sum = 0;
        for (int i = 0; i < name.length; i++) {
            System.out.print("Please enter student's name: ");
            name[i] = console.next();
            System.out.print("Now enter their score: ");
            scores[i] = console.nextInt();
            if (i == 0) {
                min = students;
                max = students;
            }else {
                if (students < min) min = students;
                if (students > max) max = students;
            }sum += students;
        }
        System.out.println("Min. Grade = " + min + name );
        System.out.println("Max. Grade = " + max + name);
        System.out.println("Average Grade = " + sum);
        double avg = (double) sum / (double) students;
        System.out.println("Avg = " + avg);
        console.close();
        }   

    }

A:

You're setting min,max, and sum to the value of students, which is the number of students—not their scores. You should probably be setting them to scores[i].
if (i == 0) {
    min = scores[i];
    max = scores[i];
}else {
    if (students < min) min = scores[i];
    if (students > max) max = scores[i];
}
sum += scores[i];

I would also store the indices for minimum and maximum scores, so that you can reference their names later.
 min = scores[i];
 minIndex = i;
 ...
 System.out.println("Min. Grade = " + min + name[minIndex] );

