title: How to concatenate arrays with space?
body: <p>I don't get it why my arrays don't concatenate,its just that when I concatenate my arrays with any other character, it doesn't show the content of the tempString. But when I remove the special characters, it produces the output.</p>
  
  <p>E.G
  When there is no special character, the output is
  //ThisisaSingleLineComment
  But when I use other special characters, there is no output at all</p>
  
  <p>The Codes I used are the ff.:</p>
  
  <pre><code>tempString=tempString+newTokens[ctr];
  
  tempString+=newTokens[ctr];
  </code></pre>
  
  <p>I even used string builder with this code, still there is no output.</p>
  
  <pre><code>StringBuilder sb = new StringBuilder(100);
  sb.append(newTokens[ctr]);
  sb.append(whiteSpace);
  </code></pre>
  
  <p>My output should look like this
  // This is a Single Line Comment</p>
  
  <p>Since each and every one of those are assigned in an array that I want to combine to form a single string / queue(stack) value.</p>