Search:

Type: Posts; User: aznenginerd

Search: Search took 0.51 seconds.

  1. Re: Using bufferedReader to write contents of text file into an object array.

    I had the while (true) loop to fill the array. I had tried to use a for loop, but every time it would hit that null at the end of the line, it would go to the noSuchElementException and initialize...
  2. Re: Using bufferedReader to write contents of text file into an object array.

    I changed my loop to the following:



    while((line = bufReader.readLine()) != null)
    {
    tokenizer = new StringTokenizer(line);
    more =...
  3. Re: Using bufferedReader to write contents of text file into an object array.

    I had tried to do it with "hasMoreTokens" but I couldn't get it to work correctly. It would still throw that "NoSuchElementException" and throw it out of the loop before it even writes to the...
  4. Using bufferedReader to write contents of text file into an object array.

    I'm fairly new to JAVA and taking a class. One of the big parts of my assignment is to read from a text file and write those values to an array.

    For the most part, I got it to work where it will...
Results 1 to 4 of 4