Question: Write a Java program that asks a user for a .txt file, then converts the file into Morse code if it is in English, or
Write a Java program that asks a user for a .txt file, then converts the file into Morse code if it is in English, or converts it into English if it is in Morse code.
You will create a class that implements this interface:

You will then use it to encode and decode the .txt files.
You should use two HashMaps, one to go from morse to letters, and one to go from letters to morse.
Read the codes in from the MorseCodeTable file:

You should pass the filename into the object via the constructor.
public interface Converter f //public converter(String encodingfile);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
