title: Exclude single characters from rle output?
body: <pre><code>    public static String compress(String original) {
      StringBuffer dest = new StringBuffer();
      for (int i = 0; i &lt; original.length(); i++) {
          int runLength = 1;
          while (i+1 &lt; original.length() &amp;&amp; original.charAt(i) == original.charAt(i+1)) {
              runLength++;
              i++;
          }
          dest.append(runLength);
          dest.append(original.charAt(i));
      }
      return dest.toString();
  }
  </code></pre>
  
  <p>hello all, so i have this code block for a method to compress a phrase using RLE algorithm. I'm having trouble figuring out how to make the method exclude applying RLE compression to single characters in my output. </p>
  
  <p>At the moment, if the user enters "fffgggttth", then the code outputs "3f3g3t1h", but I want the output to leave the h alone, so it would just be "3f3g3th".</p>
  
  <p>I feel like the solution involves a break or continue statement before the for block, but I could be wrong. Thanks!</p>