constructors and command lines
I would like to know how you allow command line input for a constructor created object.
For example, my patient class has a constructor that will create a patient with 5 parameters id, name, age, etc.....
public Patient(int d, String n, int a, int s, int x) {
id = d;
age = a;
tl = s;
name = n;
timearv = x;
In my Clinic class I would like to allow a user to be able to enter details on the command line to create a patient......DON'T KNOW HOW!!!
below is what i've come up with, but of course it doesnt work.....any help would be appreciated.....
Clinic c = new Clinic();
System.out.println("Add patient details");
Patient x = new Patient(id, name, age, tl,timearv);

