import java.util.*; public class ReverseNames { public static void main(String[] args) { int count = 0; int index = 0; Scanner scan = new Scanner (System.in); String prompt = (\"Enter next name: \"); System.out.print(\"This program will ask you to enter some names. How many do you\" + \" have?\"); int amount = scan.nextInt(); String[] name = new String[amount]; String[] reverse = new String[amount]; System.out.print(\"You entered \" +amount+ \" as the size of your name list.\"); System.out.println(\" \"); for (index = 0; index < amount; index++) { System.out.print(\"Enter next name: \"); name[index] = scan.next(); } System.out.println(\" \"); System.out.println(\"The names in reverse and original order: \"); System.out.println(\" \"); for (index = name.length - 1; index >= 0; index--) { System.out.println(name[index]+\" \"); } System.out.println(\" \"); for (String names1 : name) { System.out.println(names1+\" \"); } } } This program will ask you to enter some names. How many do you have?3 You entered 3 as the size of your name list. Enter next name: zoey Enter next name: zeb Enter next name: zena The names in reverse and original order: zena zeb zoey zoey zeb (cid:13)(cid:10) zena Solution import java.util.*; public class ReverseNames { public static void main(String[] args) { int count = 0; int index = 0; Scanner scan = new Scanner (System.in); String prompt = (\"Enter next name: \"); System.out.print(\"This program will ask you to enter some names. How many do you\" + \" have?\"); int amount = scan.nextInt(); String[] name = new String[amount]; String[] reverse = new String[amount]; System.out.print(\"You entered \" +amount+ \" as the size of your name list.\"); System.out.println(\" \"); for (index = 0; index < amount; index++) { System.out.print(\"Enter next name: \"); name[index] = scan.next(); } System.out.println(\" \"); System.out.println(\"The names in reverse and original order: \"); System.out.println(\" \"); for (index = name.length - 1; index >= 0; index--) { System.out.println(name[index]+\" \"); } System.out.println(\" \"); for (String names1 : name) { System.out.println(names1+\" \"); } } } This program will ask you to enter some names. How many do you have?3 You entered 3 as the size of your name list. Enter next name: zoey Enter next name: zeb Enter next name: zena The names in reverse and original order: zena zeb zoey zoey zeb (cid:13)(cid:10) zena.