Morse Code Java Program - Help Needed Please!!
So here's what the program has to do. We have to make a text file (morsecode.txt) that contains all the morse code characters for A-Z. So it would look something like this:
Which are A, B, C, and D, all the way up to Z. The program asks the user to enter a sentence, such as, "My name is dungeondragon," and the program has to read the morse code letters from the text file, and translate the english that the user enters to morse code. So far, I'm really stumped. I've only gotten as far as reading the text file in, and assigning it to an ArrayList.
public class MorseCode
public static void readFile() throws IOException
Scanner inFile = new Scanner(new File("morsecode.txt"));
ArrayList translations = new ArrayList();
Any help on where I can go next? All methods much be static, by the way. Thanks!