add anagram java assignment