[java] How to increase an array's length