0

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?

enter image description here

Cù Đức Hiếu
  • 5,569
  • 4
  • 27
  • 35
  • 2
    Post 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

0 Answers0