To assign something to an element of an array:
theArray[theIndex] = something;
See the tutorial:
Arrays (The Java™ Tutorials > Learning the Java Language > Language Basics)
and about loops:...
Type: Posts; User: Norm
To assign something to an element of an array:
theArray[theIndex] = something;
See the tutorial:
Arrays (The Java™ Tutorials > Learning the Java Language > Language Basics)
and about loops:...
What part are you having prblems with?
Defining an array
reading a word from the file
assigning that word to a slot in the array
making a loop what will enclose the reading and assigning steps
...