-
-
Save goodwill/87310 to your computer and use it in GitHub Desktop.
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}); | |
} | |
public void DisplayMenu() | |
{ | |
} | |
public void GetStudentDetail() | |
{ | |
String studentNameOrNumber = "John"; | |
boolean isStudentFound = false; | |
/* for(int i = 0; i < students.length; i++) | |
{ | |
if (students[i].getName() == studentNameOrNumber || Integer.toString(students[i].getNumber()) == studentNameOrNumber) | |
{ | |
ShowDetail(); | |
isStudentFound = true; | |
} | |
} | |
if (!isStudentFound) | |
ShowNotFound();*/ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment