title: Removing duplicate chars from a string passed as a parameter
body: <p>I am a little confused how to approach this problem. The userKeyword is passed as a parameter from a previous section of the code. My task is to remove any duplicate chars from the inputted keyword(whatever it is). We have just finished while loops in class so some hints regarding these would be appreciated. </p>
  
  <pre><code>    private String removeDuplicates(String userKeyword){
          String first = userKeyword;
  
          int i = 0;
          while(i &lt; first.length())
          {
              if (second.indexOf(first.charAt(i)) &gt; -1){ 
              }    
              i++;
          return ""; 
  </code></pre>
  
  <p>Here's an update of what I have tried so far - sorry about that.</p>