A simple Java program to find anagrams for inputted strings, using arrays .