Package it.unimi.di.prog2.h24
Class Anagrams
java.lang.Object
it.unimi.di.prog2.h24.Anagrams
A simple program that reads a list of words from standard input and prints all anagrams of size
at least 2.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Anagrams
private Anagrams().
-
-
Method Details
-
signature
Returns the signature of a word, that is, the word obtained by sorting its letters.- Parameters:
word
- the word.- Returns:
- the signature of the word.
-
main
Reads a list of words from standard input and prints all anagrams of size at least 2.- Parameters:
args
- not used.- Throws:
IOException
- in case some read error occurs.
-