Displaying Array Elements


Get this applet running.

You might need to be reminded about how to make a String array: String w[] = {"Never mind what you've been", "told previously: The world", "is slipping into", " the 10th dimension."}; And here is what you need to put in your keyPressed method: x++; x%=w.length; And here's how you address an array element: w[x];