Jimsson Lim

Greenhorn
+ Follow
since Sep 05, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jimsson Lim

Thank you Campell.

Ok so I did the loop for loop mention and it work. Now I got a brand new problem how will I convert all the letters that is read on the text file to numbers? For example A=1, B=2 C=3..etc.
12 years ago
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.
12 years ago