Java tutorial
//package com.java2s; import java.util.Map; import java.util.TreeMap; public class Main { private static Map<String, String> morseTable = new TreeMap<String, String>(String.CASE_INSENSITIVE_ORDER); public static String getMorse(char ch) { return morseTable.get(String.valueOf(ch)); } }