subject

Revise the course class attached with the assignment (testcourse. java source file), as follows:

a. revise the getstudents() method to return an array whose length is the same as the number of students in the course. (hint: create a new array and copy the students to it.)
b. the array size is fixed in the source code provided. revise the addstudent() method to automatically increase the array size if there is no room to add more students. this is done by creating a new larger array and copying the contents of the current array to it.
c. implement the dropstudent() method.
d. add a new method named clear() that removes all the students from the course.
write a test program that creates a course, adds three students, removes one, and displays the students in the course.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
Andrina writes letters that are regularly sent to hundreds of her company’s customers. because of this, she would like for the mail merge command to be in her quick access toolbar, and she wants it to be the first button on the left. what should andrina do to place the mail merge button there?
Answers: 1
question
Computers and Technology, 22.06.2019 15:50
The file sales data.xlsx contains monthly sales amounts for 40 sales regions. write a sub that uses a for loop to color the interior of every other row (rows 3, 5, etc.) gray. color only the data area, columns a to m. (check the file colors in excel.xlsm to find a nice color of gray.)
Answers: 2
question
Computers and Technology, 22.06.2019 19:00
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
You know the right answer?
Revise the course class attached with the assignment (testcourse. java source file), as follows:
Questions
question
History, 23.10.2020 15:40
Questions on the website: 13722361