Create a method and apply inputs to a parallel array
<p>I am new to this. I am having trouble creating a method that asks a user for a grade for a given person in the class. This is what I have so far:</p>

<pre><code>String[] names = {"Bashful", "Doc", "Dopey", "Grumpy", "Happy", "Sleepy", "Sneezy"};
double[] grades = new double [7];   

public static double[] getScores(double[] grades, String[] names)
{
    Scanner kb = new Scanner(System.in);
    for (int i = 0; i &lt; names.length; i++)
    {
        System.out.println("Enter grades for : " +names[i]);
        for (int i = 0; i &lt; grades.length; i++)
        {
            grades[i] = kb.nextDouble();
        }
    return grades;
}
</code></pre>

<p>Could someone please point me in the right direction, thanks.</p>
