If you want to use an array then you need the user to enter the number of names they are going to enter first. Do you know how to take input from the user into a program?
i think. would you first use something like this to get the number of names
System.out.print("How many names would you like to enter:");
amount = console.readLine();
temp= Integer.parselnt(amount)
how do you get the program to know how many to expect.and would i use the same format to take input for the names. i know i would have to replace integer on the third line with a code to read words.