subject

Coding Assignment due Aug 17, 2021 08:44 CDT ArrayLists Congrats! You have reached the end of the first module in this course! It is now time for you to complete your first coding assignment. For this assignment, you will be implementing an ArrayList. Recall that an ArrayList is a list data structure backed by an array where all of the data is contiguous and aligned with index 0 of the array. Your ArrayList should follow the requirements stated in the javadocs of each method you are to implement. IMPORTANT: You will be given 5 attempts on this assignment, with a 30 minute cooldown between submissions. Please run your code before each submission to ensure that there are no formatting errors! If there are formatting errors in your code, your code will not be graded and a submission attempt will be logged. For more information, please review the Vocareum overview below. Capacity The starting capacity of the ArrayList should be the constant INITIAL_CAPACITY defined in the file. Reference this constant as-is. Do not simply copy the value of this constant. Do not change the constant. If, while adding an element, the ArrayList does not have enough space, you should regrow the backing array to twice its old capacity. This means that if the initial capacity of the backing array is 9, then after one resize the capacity will be 18, and after two resizes the capacity will be 36. Do not resize the backing array when removing elements.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 08:00, Buddy01
Match the items with their respective descriptions.
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, solizpaco7124
1. which of the following is not an example of an objective question? a. multiple choice. b. essay. c. true/false. d. matching 2. why is it important to recognize the key word in the essay question? a. it will provide the answer to the essay. b. it will show you a friend's answer. c. it will provide you time to look for the answer. d. it will guide you on which kind of answer is required.
Answers: 1
image
Computers and Technology, 24.06.2019 04:30, LouieHBK
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe and
Answers: 1
image
Computers and Technology, 25.06.2019 00:00, bestdiva2
What function key is used to enable the spelling and grammar function
Answers: 1
You know the right answer?
Coding Assignment due Aug 17, 2021 08:44 CDT ArrayLists Congrats! You have reached the end of the fi...

Questions in other subjects: