Question: Public class Jobclass { public static int DataArrays(String NewFile, String names, int[] offices, int floors, int[] rooms) throws IOException; } So my assignment is to
Public class Jobclass {
public static int DataArrays(String NewFile, String names,
int[] offices, int floors,
int[] rooms) throws IOException;
}
So my assignment is to read the input file "New File" and put the names, the offices, the floors and the rooms into separate parallel arrays. I'm not sure how to start. Apparently, I don't need a main method as well, and I'm just really stuck on how to do it. It is a CSV file, and an example input file would look like this:
![Public class Jobclass { public static int DataArrays(String NewFile, String names, int[]](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f39b6f6c9ed_07166f39b6f13de5.jpg)
with Fred as the name, 5 would be int office, 3 would be the int floor, and 0 would be rooms.
Fred, 5,3,0 Sara,1,1,1 Sam,3,5,0 Rob,9,-6,0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
