title: interpolate into string in java
body: <p>Say I have a list of char variables called perm1, perm2, perm3, ..., perm10.</p>
  
  <p>I am doing the same function to all ten char variables, and would rather put them through a loop using something like </p>
  
  <pre><code>for (int i = 0; i &lt; 11; i ++){
      doSomething(perm$i);
  }
  </code></pre>
  
  <p>What would be the correct syntax for this idea, similar I guess to interpolation in Perl?</p>
  
  <p>Thank you!!</p>