Question: Q1. Java Make Course class so that the following program is working public class TestCourse { public static void main(String[] args) { Course coursel =
Q1. Java Make Course class so that the following program is working public class TestCourse { public static void main(String[] args) { Course coursel = new Course("Data Structures"); Course course2 = new Course("Database Systems"); coursel.addStudent("Peter Jones"); coursel.addStudent("Brian Smith"); coursel.addStudent("Anne Kennedy"); course2.addStudent("Peter Jones"); course2.addStudent("Steve Smith"); System.out.println("Number of students in coursel: " + coursel.getNumberOfStudents(); String[] students = coursel.getStudents(); for (int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
