Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Re: Exception in thread "AWT-EventQueue-0" at Map.getMap(Map.java:48)

    Some thing like this:

    while(input.hasNext() {
    data = input.next();
    // more stuff here
    }
  2. Re: Exception in thread "AWT-EventQueue-0" at Map.getMap(Map.java:48)

    You must call hasNext() for each time that you call next(). The posted code only calls it once before the inner loop calls it 14 times.
  3. Re: Exception in thread "AWT-EventQueue-0" at Map.getMap(Map.java:48)

    Before calling next() you need to make sure there is data to be read. Call the hasNext method first to determine if there is anything to read. If hasNext() returns false, do not call the next()...
  4. Re: Exception in thread "AWT-EventQueue-0" at Map.getMap(Map.java:48)

    At line 68 the code calls the Scanner class's next() method. The method throws: NoSuchElementException
    Read the API doc for a description of what that means.

    Basically you need to test if there...
Results 1 to 4 of 4