Question: IN JAVA I need to create a 1D array of this text file, the elements inside of the text file should be OBJECTS not a
IN JAVA
I need to create a 1D array of this text file, the elements inside of the text file should be OBJECTS not a string. They also have different lengths so i am not sure how to do this.
Do not use built in methods. All you have to do is put this text file into a 1D array such that you are splitting the line into parts.
If the first part is QUARTER then you will create a object for that and store it into a index of the array.
If the first part is NICKEL then you will create a object for that and store it into a index of the array.
Text File:
QUARTER 25 50 75
NICKEL 5 10 15 20
DIME 10 20 30 40 50 60 70
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
