Storing file content into an array

前端 未结 2 421
别跟我提以往
别跟我提以往 2021-01-29 00:12

I\'m having a problem with my hangman program. I really think what I need to do is beyond what I understand about java. Here\'s my code

import java.io.BufferedRe         


        
2条回答
  •  囚心锁ツ
    2021-01-29 01:01

    You need to save the read line in a String object and assign it to a certain field of the array. For example:

    wordList[0] = myString;
    

    This would assign the value of myString to the first field of your array.

提交回复
热议问题