Java tutorial
//package com.java2s; import java.util.*; public class Main { private static Hashtable<Character, String> characterTable; private static String codedText = ""; public static void coder(String textString) { for (char c : textString.toCharArray()) { codedText += characterTable.get(c); } } }