Friday, 13 September 2013

Reading in data from a file and using it to create a new object

Reading in data from a file and using it to create a new object

I have a class called Name like so.
public Name (String first, String last)
I want to read in a text file that contains names.
John Doe
Jane Doe
Then I want to create a new name object using the first word as the first
parameter and the second word as the second parameter.
How do I do this?

No comments:

Post a Comment