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/66f39c9807f80_36866f39c9802b4e.jpg)
with Fred as the name, 5 would be int office, 3 would be the int floor, and 0 would be rooms.
I need to put Fred, Sara, Sam and Rob into an array for the names. 5, 1, 3, 9 into an array for the offices. 3,1, 5, 6 into an array for the floors, and 0, 1, 0, 0 into an array for the rooms.
note: Java
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
