title: Using a while loop to remove letters
body: <p>I am trying to make a program using While to remove any letters in the <code>String</code>. 
  So the string would be <code>abcXabcXabc</code> and I would say <code>X</code> and it would remove it.
  I.e <code>abcabcabc</code>. I have written most of the class but I am stumped on what I would put into my while loop. </p>
  
  <pre><code>class LineCleaner {
      private String line;
      private char remove;
  
      public LineCleaner(String s, char rem) {
          setCleaner(s, rem);
      }
  
      public void setCleaner(String s, char rem) {
          line = s;
          remove = rem
      }
  
      public String getCleaned() {
          String cleaned = line;
          int loc = cleaned.indexOf(remove);
  
          while (/*CONDITION*/) {
              // what to do here
          }
          return cleaned;
      }
  
      public String toString() {
          return line + " - letter to remove " + remove;
      }
  }
  </code></pre>