Question: I am trying to create a GUI in Java, but this error keeps popping up and I do not know what to do to fix

I am trying to create a GUI in Java, but this error keeps popping up and I do not know what to do to fix this error. Any help would be appreciated with fixed java code
// Arrays to store data
public int[] itemCode;
public String[] itemName;
public float[] unitPrice;
// Item constructor
HW4(){// Reading file// Getting dataitemName = new String[data.length];for (int i =0; i data.length; i++){ itemCode[i]= Integer.parseInt(dataDivided[0]); unitPrice[i]= Float.parseFloat(dataDivided[2]);}
// Reading files from the source provided
public String[] readFile(String[] records){ String line; while ((line = br.readLine())!= null){ recordsList.add(String.join(",", values)); return recordsList.toArray(new String[0]); e.printStackTrace();return records;
}
// GetName function
public String getName(int code){}
// GetPrice function
public double getPrice(int code){}
I am trying to create a GUI in Java, but this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!