title: StringTokenizer "NoSuchelementException"
body: <p>So For some reason i'm getting a java.lang.Exception: java.util.NoSuchElementException. The values are priting off like this.</p>
  
  <pre><code>back
  bison
  1.0
  back
  dog
  3.0
  becaue
  bison
  1.0
  best
  bison
  1.0
  david
  bison
  1.0
  ever
  bison
  1.0
  i
  bison
  1.0
  i
  dog
  4.0
  im
  bison
  1.0
  is
  bison
  1.0
  </code></pre>
  
  <p>But at the very end i get the NoSuchelementException:</p>
  
  <p>my code is simple:</p>
  
  <pre><code>StringTokenizer line = new StringTokenizer(new String(value.getBytes()));
      while (line.hasMoreElements()){
          Text unWord = new Text((String) line.nextElement());
          String unAuth = (String) line.nextElement();
          float unVal = Float.parseFloat(line.nextToken());
  
          System.out.println(unWord);
          System.out.println(unAuth);
          System.out.println(unVal);
      }
  </code></pre>
  
  <p>I can't seem to figure out why the Elements would print off, but i would get a noSuchelementException at the end. </p>