// IntroToArrays.java // Written (mostly) in class on Tue 6-Oct-09 import java.util.*; public class IntroToArrays { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("Enter n (the # of #'s): "); int n = scanner.nextInt(); int[] x = new int[n]; // creates n variables, all of // type "int", all with default values, // of 0 // Read in the n #'s for (int i=0; i=0; i--) System.out.print(x[i] + " "); // Print the #'s in reverse another way System.out.println("\nOnce again, here are the numbers in reverse:"); for (int i=0; i