displayword()rotate(newsize)/if innermost/display it /rotate word each time the doanagram(method calls itselfthe size of the word is one letter smallerand the starting position is one cell further to the rightas shown in figure figure the recursive doanagram(method figure smaller and smaller words listing shows the complete anagram java program the main(routine gets word from the userinserts it into character array so it can be dealt with convenientlyand then calls doanagram(listing the anagram java program /anagram java /creates anagrams /to run this programc>java anagramapp import java io */for / ///////////////////////////////////////////////////////////////class anagramapp static int size