// In ImageJ 1.53g and later, arrays automatically // expand in size as needed. Call // setOption("ExpandableArrays", true); // to use expandable arrays in earlier versions // of ImageJ. cars = newArray; cars[0] = "Saab"; cars[1] = "Volvo"; cars[2] = "BMW"; cars[4] = "Ford"; Array.print(cars);