Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.10 seconds.

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

    Ok, tell me if I am wrong, but here's how I would expect your original code to run:


    ENTER WHILE (outer):
    line = "item1 250"
    tokenizer = new StringTokenizer(line);
    ENTER TRY:
    ENTER WHILE...
  2. Re: Using bufferedReader to write contents of text file into an object array.

    You have to reevaluate tokenizer.hasMoreToken() each time you use the tokenizer.nextToken() method.

    Explain to me the reason you have the while loop (the one that says while(true)).
Results 1 to 2 of 2