Can you describe your algorithm?
Your description suggests that you don't go back to the being of the dictionary to start searching for the second word.


Where is the .equals loop? You don't...