public class Resize { private static String[] myArray; public static void init() { String[] temp = {"Larry", "Mo", "Curly", "Dr. Daugherty"}; myArray = temp; } public static void resizeAndAdd(String newWord) // This method increases the size of the array instance variable // named "myArray" by one, and then adds "newWord", the string // object it receives as input, to the end of "myArray". { } public static void main(String[] args) { init(); System.out.println("Before resizing, the array contains: "); for(int i = 0; i < myArray.length; i++) { System.out.print(myArray[i]); if(i != myArray.length - 1) { System.out.print(", "); } } System.out.println("\n"); resizeAndAdd("President Bush"); System.out.println("After resizing, the array contains: "); for(int i = 0; i < myArray.length; i++) { System.out.print(myArray[i]); if(i != myArray.length - 1) { System.out.print(", "); } } System.out.println(); } }