title: charAt() or substring? Which is faster?
body: <p>I want to go through each character in a String and pass each character of the String as a String to another function. </p>
  
  <pre><code>String s = "abcdefg";
  for(int i = 0; i &lt; s.length(); i++){
      newFunction(s.substring(i, i+1));}
  </code></pre>
  
  <p>or</p>
  
  <pre><code>String s = "abcdefg";
  for(int i = 0; i &lt; s.length(); i++){
      newFunction(Character.toString(s.charAt(i)));}
  </code></pre>
  
  <p>The final result needs to be a String. So any idea which will be faster or more efficient?</p>