I am getting a "non-static method cannot be referenced from a static context" - which I believe basically means that the object is not getting created. What am I doing wrong?
public void loadData() {
String csvFile = "/data/patientList.csv";
BufferedReader br = null;
try {
br = new BufferedReader(new FileReader(csvFile));
br.readLine();
String line1 = null;
while ((line1 = br.readLine()) != null) {
String[] patient = line1.split(",");
int bedNum = Integer.parseInt(patient[0]);
Patient patient1 = new Patient(bedNum, patient[1], patient[2], patient[3], patient[4],
RESPIRATORY_RATE, HEART_RATE, SYSTOLIC, SPO2);
throws errors here, for example:
patientNameField.setText(Patient.getFistName());