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 getNumberFromCode(String code) {

        char codeArray[] = code.toCharArray();

        String numbers = "";

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

        return numbers;
    }
}