Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    4
    Views
    2,479

    Re: How to read a String .dat file into an array

    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:...
  2. Replies
    4
    Views
    2,479

    Re: How to read a String .dat file into an array

    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
    ...
Results 1 to 2 of 2