title: Value not printing
body: <p>I need to find out out why the following code segment doesn't print the value in a swing  application and how to resolve it.</p>
  
  <pre><code>         String text = txtResults.getText();
           StringTokenizer token = new StringTokenizer(text);
           StringBuilder s = new StringBuilder();
           while(token.hasMoreElements())
           {
              String value = token.nextElement().toString();
              StringBuilder result = new StringBuilder();
              for (int index = 0;index &lt; value.length();index += 8) {
              result.append((char) Integer.parseInt(value.substring(index, index + 8), 2));
              s.append(result);
              }
           }
            System.out.println(s);
  </code></pre>