XML

COMP3200 Anonymous Questions and Answers Keyword Index

This page provides a keyword index to questions and answers. Clicking on a keyword will take you to a page containing all questions and answers for that keyword, grouped by year.

To submit a question, use the anonymous questions page. You may find the keyword index and/or top-level index useful for locating past questions and answers.

Keyword reference for ex-5-10

2024

Question 30 (2024):

Submission reference: IN3675

Good afternoon, I'm completing exercise 5.10 in the week 13 exercises and I'm confused about what is required of me. I've written:

Book bookName;
library.add(bookName);

Student studentName;
comp3200.add(studentName);

MusicTrack songName;
track.add(songName);
However, I'm not sure that this is what was meant in the question, as the variable names I had made up myself in order to assign something to the ArrayLists. Thank you

Answer 30:

Sorry if the question is not clear. What it wants you to do is write the code that creates each ArrayList object and assigns that object to the field names you defined in the previous exercises. Hopefully, that is clearer.

Keywords: ex-5-10

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
Last modified Fri Jan 17 08:25:20 2025
This document is maintained by David Barnes, to whom any comments and corrections should be addressed.