Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String getCodeFromNumber(String number) {

        char[] numberArray = number.toCharArray();

        String character = "";

        for (int i = 0; i < numberArray.length; i++) {
            int intNumber = ((int) numberArray[i] - 48);
            character += Character.toString((char) (intNumber + 1632));
        }

        return character;
    }
}