{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Main - import java.io i import java.util p public class...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*; import java.util.*; i public class Main { p public static void main(String[] args) { Student[] students = new Student[10]; Course[] courses = new Course[10]; courses[0] = new Course("cis3022", "java1", "MWF-2"); courses[1] = new Course("cis3023", "java2", "MWF-3"); courses[2] = new Course("cis3020", "java", "MWF-5"); courses[3] = new Course("cot3100", "discrete math", "TR-5"); students[0] = new Student("Nathan", "Vanderkraats", "111-11-1111", "[email protected]", 4.0); students[1] = new Student("Shayan", "Javed", "111-11-1112","[email protected]", 3.0); students[2] = new Student("Ruijin", "Wu", "111-11-1113", "[email protected]", 3.5); students[3] = new Student("Wenjie", "Yuan", "111-11-1114","[email protected]", 4.0); students[4] = new Student("Karthik", "Gurumoorthy", "111-11-1115", "[email protected]", 3.8); " students[0].addCourse(courses[0]); students[0].addCourse(courses[3]); students[1].addCourse(courses[1]); students[2].addCourse(courses[2]); students[3].addCourse(courses[0]); Scanner in = null; PrintWriter out = null;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 2

Main - import java.io i import java.util p public class...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon bookmark
Ask a homework question - tutors are online