title: Java Program, String
body: <p>It's about string to make a compact output.</p>
  
  <p><strong>Example 1</strong></p>
  
  <pre><code>Input : boooooob
  Output : bob
  </code></pre>
  
  <p><strong>Example2</strong></p>
  
  <pre><code>Input : boobaabbiibbuuuuub
  Output : bobabibub
  </code></pre>
  
  <p>Can anyone help me? </p>
  
  <p>I'm stuck, thx.</p>