can anyone solve my java codes? i can't enter input for the second names..what should i do?
<p>Here is the code:</p>

<pre><code>import java.util.Scanner;
public class Array2 
{
  static Scanner input = new Scanner ( System.in );

  public static void main ( String [] args )
  {
    String [] studentNames = new String [5];
    student_Names ( studentNames );
  }

  public static void student_Names ( String [] studentNames )
  { 
    for ( int x = 0; x &lt; studentNames.length; x++ )
    {
      System.out.printf( "\nStudent %d name : ", x+1);
      studentNames[x] = input.nextLine();
      student_Scores();
    }
  }

  public static void student_Scores ()
  {
    double [] studentScores = new double [4];
    int x;
    for ( x = 0; x &lt; studentScores.length; x++ )
    {
      System.out.printf( "\nEnter marks for test %d: ",x+1 );
      studentScores[x] = input.nextDouble();
    }
    average_Scores( studentScores );
  }

  public static void average_Scores( double [] a )
  {
    int i;
    double sum, average;
    for ( i = 0, sum = 0; i &lt; a.length; i++ )
    {
      System.out.printf("Marks Test %d : %.2f\n", i+1, a[i]);
    }

    for ( i = 0, sum = 0; i &lt; a.length; i++ )
    {
      sum = sum + a[i];
    }
    average = sum / a.length;
    student_Grades ( average );
    System.out.printf("\nAverage Score : %.2f", average);
  }

  public static void student_Grades ( double b )
  {
    String c = "";
    if ( b &gt; 0 &amp;&amp; b &lt; 60)
      c = "F";
    if ( b &gt;= 60 &amp;&amp; b &lt; 70)
      c = "D";
    if ( b &gt;= 70 &amp;&amp; b &lt; 80)
      c = "C";
    if ( b &gt;= 80 &amp;&amp; b &lt; 90)
      c = "B";
    if ( b &gt;= 90 &amp;&amp; b &lt;= 100)
      c = "A";
    System.out.printf("\nGrade         : %s", c);
  }
}
</code></pre>

<p>And this is the output when this is execute:</p>

<pre><code>Student 1 name : sss

Enter marks for test 1: 12

Enter marks for test 2: 23

Enter marks for test 3: 34

Enter marks for test 4: 45
Marks Test 1 : 12.00
Marks Test 2 : 23.00
Marks Test 3 : 34.00
Marks Test 4 : 45.00

Grade         : F
Average Score : 28.50
Student 2 name : 
Enter marks for test 1: 
</code></pre>
