Question: Create in java .Create a class called CustomisedDynamicArray. It should have an array field to represent the dynamic array, and fields such as the current
Create in java .Create a class called CustomisedDynamicArray. It should have an array field to represent the dynamic array, and fields such as the current size, the maximum capacity, maximum capacity trigger point (eg. 80% of maximum capacity), capacity multiplier and a Boolean allowShrink to trigger shrinking if the array has fallen below 20% capacity. In addition, the CDA should have a constructor to initialize all the attributes. In your program you should determine the default values for such attributes if the user provides an invalid one.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
