Two words are anagrams if they are composed of the same letters. For example, "bagel" and "gable" are anagrams as are "drainage" and "gardenia". In this example, the program reads a dictionary (a list of words) and finds all the words within the list that are anagrams of each other.
In C++: |
In Java: |
To help you answer these questions, you may want to check your course readings, the C++ and Java tutorials available from the course resource page.