Professional Documents
Culture Documents
*;
import java.util.*;
import javax.swing.*;
/****************************************************************************
* @author Marcus Grant
* @version 16-2-2016
* MORSE CLASS that: 1) Reads in a text file with morse code on it.
* 2) Ask a user to enter sentences, that will be translated into morse
* code. 3) When the user hits the cancel button, a message will appear
* that shows what the user entered and the translation into morse code.
****************************************************************************/
public class Morse {
public static void main(String[] args) {
// ArrayList holds Morse Code characters
ArrayList<String> morseCode = new ArrayList<String>();
String userInput = "";
String option;