TestA2Q1.java - COMP 1020 Summer 2017 Assignment 2 Question 1 Supplied test program public class TestA2Q1 cfw public static void main(String args)throws

TestA2Q1.java - COMP 1020 Summer 2017 Assignment 2 Question...

This preview shows page 1 out of 1 page.

/* COMP 1020 Summer 2017 * Assignment 2 Question 1 * Supplied test program */ public class TestA2Q1 { public static void main(String[] args)throws Exception { //Create a Database object and load the test file into it. Database courseList = new Database("courses.txt","coursesOut.txt"); CourseListQ2 courses = courseList.load(); //Add a new course and delete an existing course courses.addCourse(new Course("Aristotle", "Department of Philosophy",3,2)); courses.removeCourse("20171001");
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '15

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture