The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
java: write a class that finds anagrams (you can name the class anything). An anagram of a word is a permutation of the letters in that word; for example, “stop” is an anagram of “tops”.
Now write a driver program name "anagram.java" that invokes the above class to process the functions.
The input to the program is a list of words read from an input file, the name of which will be supplied by the user (as shown in the example below) .
The output is a list containing the same words, but with anagrams displayed on the same line and should be displayed both on the screen as well as an output file name output.txt. This output file name must be built-in into the program.
The things contains on input file may like this :
Pans
Pots opt sit
opt
Sit
it's
snap
Here are some requirements for the program:
-----------