title: How to iterate over String(char[])
body: <p>I read the content of one file into <code>String(char[]) content</code>:</p>
  
  <pre><code>8264,1
  28462,1
  15836,1
  </code></pre>
  
  <p>Then I want to multiply second column by 5 and append another file with processed values: </p>
  
  <pre><code>8264,5
  28462,5
  15836,5
  </code></pre>
  
  <p>The problem is with iterating over <code>content</code>. If I iterate as shown below, then obviously I get chars like <code>8</code>, <code>2</code>, <code>6</code>, <code>4</code>, etc., but not lines <code>8264,5</code>.</p>
  
  <pre><code>FileWriter fw = new FileWriter(filew.getAbsoluteFile());
  BufferedWriter bw = new BufferedWriter(fw);
  StringBuilder sb = new StringBuilder();
  for (int k = 0; k &lt; content.length(); k++) 
  {
      char c = content.charAt(k);
      //multiply second column by 5
  } 
  </code></pre>