Hi guys,
I'm hoping someone has a good exmaple, or could explain a good way to do what I am attempting.
Basically an example of what I am trying to do is read a list of users from a text file, and create say a "customer" object for each user's name from the text file. I'm somewhat familiar with java, and have everything working except the multiple object creation.
Every example I have seen of object creation involves a single object created from main, for example:
Dog fido = new Dog(labrador, 100lbs, ect);
The program would parse the text file, and substitute the user's name for "fido" in the previous example creating a new customer object for each read customer from the text file.
If this is not possible, what would be a better way to have customers input from an externally modifyable text file that people could enter new users into with various attributes?
If anyone has any examples, or can suggest method that would work I would be in your debt!
Thanks!
I'm hoping someone has a good exmaple, or could explain a good way to do what I am attempting.
Basically an example of what I am trying to do is read a list of users from a text file, and create say a "customer" object for each user's name from the text file. I'm somewhat familiar with java, and have everything working except the multiple object creation.
Every example I have seen of object creation involves a single object created from main, for example:
Dog fido = new Dog(labrador, 100lbs, ect);
The program would parse the text file, and substitute the user's name for "fido" in the previous example creating a new customer object for each read customer from the text file.
If this is not possible, what would be a better way to have customers input from an externally modifyable text file that people could enter new users into with various attributes?
If anyone has any examples, or can suggest method that would work I would be in your debt!
Thanks!
