Hi,
I'm new to
java and I am having some problem solving my code for quite some time. I'm trying to make a line that was read in a text file convert it to
String and store it in an array and then distribute it to three linked list.
for example, one of the line that is read from the text consist of "24567hguy4565e" I need to put each individual number or letter to one of index of an array and then transfer it to two linked list.
I would like to ask also for someone to clarify to me how the System.in in the "Scanner file = new Scanner(System.in);" works. I read the description from the book, but I'm not sure how it would find my text file or multiple text file and able to read from it.
I tried other methods of storing it on a linked list or array and I usually get either an array of nulls, or [L]java.lang.String;@7c6768, or an error on the loop code.
Thank you in advance.