Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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);
        }
    }
}