Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * Transform the raw ASCIIs to String by its value.
     * 
     * e.g. if ASCII = "97", the result is "a".
     * 
     * @param ASCII the raw ASCII require transforming
     * @return the String by its value
     */
    public static String ascii2String(String ASCII) {
        return Character.toString(__ascii2Char(Integer.parseInt(ASCII)));
    }

    private static char __ascii2Char(int ASCII) {
        return (char) ASCII;
    }
}