import java.util.Scanner;
public class InputArray
{
public static void main(String[]args)
{
String name = "";
{
Scanner ScanObj = new Scanner(System.in);
for(int i = 1 ; i < 6 ; i ++)
{
System.out.println("Enter a name: ");
name = ScanObj.next();
}
String temp += name;
System.out.println("The names you entered are:" + name);
}
}
}