title: I am trying to build an array in java that has multiple data types
body: <p>I'm a beginner in programming java, I have a question which asks of me to input: the student name, id, math score, english score, and science score then calculate his total and average. So I am trying to make it into a 2d array yet I don't know how to turn string array into int. Is there a way to have one array with multiple data types(char, int, string etc)?
  heres my code so far</p>
  
  <pre><code>int columns = input.nextInt();
          int rows=5;
          int StudentName=0;
          int StudentID=1;
          int math=2;
          int English=3;
          int Science = 4;
          int i = 0;
          String[][] newArray = new String[columns][rows];
          for (i = 0; i&lt;columns;i++){
              System.out.println("Enter Student Name ");
              newArray[i][StudentName] = input.nextLine();           
              System.out.println("Enter Student ID ");
              newArray[i][StudentID] = input.nextLine();
              System.out.println("Enter Student Math Score ");
              newArray[i][math] = input.nextLine(); 
              System.out.println("Enter Student English Score ");
              newArray[i][English] = input.nextLine();
              System.out.println("Enter Student Science Score ");
              newArray[i][Science] = input.nextLine();
          }
          for(i = 0; i &lt; columns; i++){
              for(int j = 0; j &lt; 5; j++){
                 System.out.println(newArray[i][j]);
              }
          }
      }
  </code></pre>