import java.util.*; public class ArrayOfStrings { public static void main(String[ ] args) { String[ ] array = new String[100]; // assume we won't need more String temp; Scanner in=new Scanner(System.in); int number = 0; // currently no elements in the array System.out.print("Enter the first string, type \"quit\" to terminate input. "); temp=in.next(); while(!temp.equals("quit")) { array[number] = temp; number++; // why is the following statement repeated when it appears above? System.out.print("Enter the next string, type \"quit\" to terminate input. "); temp=in.next(); } System.out.println("Your list of inputs is:"); for(int i=0;i