title: Algorithm for word matching
body: <p>My main idea is to find an algorithm ( Java ) that takes the random letters which someone has typed in a JoptionPane for instance and then instantly by pressing "Find words" i would like the program to derive all those words that match my letters from a dictionary stored in a .txt file.</p>
  
  <p>I am struggling to find that algorithm.</p>
  
  <p>For example:</p>
  
  <p>Take into consideration that we got the following letters in a Scrabble match:</p>
  
  <p>a , o ,p, t, e, z, e, w</p>
  
  <p>I would like to find a java code or at least an algorithm in order to find from an english dictionary .txt file all the words that have those letters but not anything else. if I type " a, p, p" I want to have as a result the word "app" and not (app"s"). 
  So ... to sum up, how can i compare those letters from words stored in a .txt file and as a result get specific words that match in my given letters ?</p>