title: How to remove duplicate alphabets from two strings in java without any builtin functions?
body: <p>Here I have two strings. From that, how can I remove common alphabets/characters and store in result(third) String?</p>
  
  <pre><code>&lt;%
      String[] firstString = {"google out"};
      String[] secondString = {"stack overflow"};
      String[] result={""};
          for (int i = 0,k=0; i &lt; firstString.length; i++,k++) {
              for (int j = 0; j &lt; secondString.length; j++) {
                  if (firstString[i].equalsIgnoreCase(secondString[j])) {
              } else {
                  result[k]=result[j]+firstString[i];
                  out.println(result[k]);
              }
          }
      }
  %&gt;
  </code></pre>
  
  <p>expected result is:<br>
  <code>g l e o u t s c  k v f w</code></p>