// // declare an array, speech, that can hold up to 1000 words // import java.util.Scanner; class Array1 { public static void main(String[] args) { Scanner input = new Scanner(System.in); String[] speech = new String[1000]; // make the first word of speech as "We"? speech[9] = "We"; // read the 2nd word from key? speech[1] = input.next(); // out first 10 words of speech? for(int i=0; i<10; i++) { System.out.print(speech[i]+" "); } // debug //System.out.println(speech[1]); System.out.println("\n\nDone.\n\n"); } }