Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.HashMap;
import java.util.Map;

public class Main {
    private static Map<String, String> msg = new HashMap<String, String>();

    public static String getStringToNumber(String value) {
        StringBuffer sbu = new StringBuffer();
        char[] chars = value.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            {
                sbu.append(msg.get("" + chars[i]));
            }
        }
        return sbu.toString();
    }
}