Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started