How can I read a file into a array of String[] and then convert it into ArrayList?
I can't use an ArrayList right away because my type of list is not applicable for the arguments (String).
So my prof told me to put it into an array of String, then convert it.
I am stumped and cannot figure it out for the life of me as I am still very new to java.
Arrays.asList(myArray);
– Mick Mnemonic Apr 5 at 23:53Person
s from the file without populating eachPerson
explicitly. It might be easiest to read the "raw" string lines in first and do the conversion of line ->Person
afterwards. – Mick Mnemonic Apr 6 at 0:15