This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Student { | |
private String name; | |
private int number; | |
private int age; | |
private String gender; | |
private int[] grade; | |
public Student(String stuName,int stuNumber,int stuAge,String stuGender, int[] stuGrade){ | |
this.name = stuName; | |
this.number = stuNumber; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PartA { | |
private static Student[] students = new Student[5]; | |
public static void main(String[] args) | |
{ | |
students[0] = new Student("Jack Smith",8001, 35 ,"M", new int[]{42,50,56,71,68,55}); | |
students[1] = new Student("Jim Lucas",8002,23,"M",new int[]{92,88,76,89,92}); | |
students[2] = new Student("Beck Barber",8003,38,"M",new int[]{55,45,37}); | |
students[3] = new Student("Ann Walker",8004,26,"F",new int[]{65,67,58,66,41,48}); | |
students[1] = new Student("Lucy Boxer",8005,31,"F",new int[]{85,95,93,30,80,89}); |