Array expand doesn't always work?

Yes, thanks, just realised I should have ’ lines = expand(lines, 20); ’

I’ve used ArrayList lots of times, it’s very good.