title: How do I pass integers into an instance where the parameter type is an integer array rather than an integer
body: <p>FIRST CLASS</p>
  
  <pre><code>public class Student {
  public String name;
  public int IDnumber;
  public int[] marks;
  
  // constructor
  public Student(String name, int IDnumber, int[] marks){
      this.name = name;
      this.IDnumber = IDnumber;
      this.marks = marks;
  }}
  </code></pre>
  
  <p>SECOND SEPARATE CLASS</p>
  
  <pre><code>public class StudentCreator {
  public static void main(String[] args) {
      Student alex = new Student("Alex", 12, 78);
      System.out.println(javonne.marks);
  }}
  </code></pre>
  
  <p>Sorry if im getting confused with the jargon, im still new. In the second separate class im trying to add some integers into my instance but im not sure how since the parameters type for marks is an integer array rather than an integer. The instance alex should have 78 stored in his array under marks</p>