I can't read multiple word in separete lines from .txt file using java. I only can read one line from it. I need to store each word in .txt file into a array of strings. here is my code can please someone help me how can I do it?
Asked
Active
Viewed 187 times
0
-
2Post your code here, not as an image. Edit, paste, select the code, press ctrl-k. – Elliott Frisch Oct 31 '16 at 02:15
-
You should post your code, in your IMG you are already reading all the lines in the file, you just need to stored in words[cont++] = read; also to print "words" you need to used a for – Manuel Mejias Oct 31 '16 at 02:25