Created
January 24, 2017 08:41
-
-
Save ioncodes/8134b19ed3e9ee2c363bb6b96d02278c to your computer and use it in GitHub Desktop.
HashMap<String,String> of morse codes which I need for school
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HashMap<String,String> morseCodes = new HashMap<String,String>() {{ | |
put("A", ".-"); | |
put("B", "-..."); | |
put("C", "-.-."); | |
put("D", "-.."); | |
put("E", "."); | |
put("F", "..-."); | |
put("G", "--."); | |
put("H", "...."); | |
put("I", ".."); | |
put("J", ".---"); | |
put("K", "-.-"); | |
put("L", ".-.."); | |
put("M", "--"); | |
put("N", "-."); | |
put("O", "---"); | |
put("P", ".--."); | |
put("Q", "--.-"); | |
put("R", ".-."); | |
put("S", "..."); | |
put("T", "-"); | |
put("U", "..-"); | |
put("V", "...-"); | |
put("W", ".--"); | |
put("X", "-..-"); | |
put("Y", "-.--"); | |
put("Z", "--.."); | |
put("Ä", ".-.-"); | |
put("Ö", "---."); | |
put("Ü", "..--"); | |
put("Ch", "----"); | |
put("0", "-----"); | |
put("1", ".----"); | |
put("2", "..---"); | |
put("3", "...--"); | |
put("4", "....-"); | |
put("5", "....."); | |
put("6", "-...."); | |
put("7", "--..."); | |
put("8", "---.."); | |
put("9", "----."); | |
put(".", ".-.-.-"); | |
put(",", "--..--"); | |
put("?", "..--.."); | |
put("!", "..--."); | |
put(":", "---..."); | |
put("\"", ".-..-."); | |
put("'", ".----."); | |
put("=", "-...-"); | |
}}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment