courtney young wrote:Hi, I have to implement a grow and shrink method in java using loops but I'm lost! We aren't allowed to use things like .copy or .copyof or anything of that nature. Please help! Any advice on where to head would be great.
courtney young wrote:I'm not sure what I'm doing wrong.
courtney young wrote:I think I might have got it:
Paweł Baczyński wrote:Suppose capacity is 10 and size is 7.
What will happen?
My advice is: StopCoding (this is a link). Stop guessing. Turn off your computer. Think about the solution (a description, not a code!) and write it down on paper.
courtney young wrote:I'm confused. I know I need another loop here.