this is what I have now. I only know how to manually put them into the program. How do you read in the names?
import cs1.Keyboard;
public class TestName
{
public static void main (String[] args)
{
//construct two new objects
Name Name1 = new Name("Mike", "Matt", "Jones");
Name Name2 = new Name("Tommy", "Lee", "Smith");
//information for Name1
System.out.println(Name1.firstMiddleLast());
System.out.println();
System.out.println(Name1.lastFirstMiddle());
System.out.println();
System.out.println(Name1.initials());
System.out.println();
System.out.println("Name Length: " + Name1.length());
System.out.println();
//information for Name2
System.out.println(Name2.firstMiddleLast());
System.out.println();
System.out.println(Name2.lastFirstMiddle());
System.out.println();
System.out.println(Name2.initials());
System.out.println();
System.out.println("Name Length: " + Name2.length());
System.out.println();
//see if the names are equal
if (Name1.equals(Name2))
System.out.println("The names are the same.");
else
System.out.println("The names are not the same.");
System.out.println();
}
}