Beginner Help (Java code)
Code:
import java.util.Scanner;
public class EnteredNames
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
System.out.println("Enter Name1: ");
System.out.println("Enter Name2: ");
System.out.println("Enter Name3: ");
System.out.println("Enter Name4: ");
System.out.println("Enter Name5: ");
}
I'm really new to programming and have been struggling with this forever. I'm supposed to have a user enter five names and then have those names printed out and stored in an array. This is what I have so far. If I could get just a heads start it would be greatly appreciated, I'm not asking for the entire project to be done, I just have no idea where to go from here.
Thanks.