Here you can find the source of ascii2String(String ASCIIs)
Parameter | Description |
---|---|
ASCIIs | a parameter |
public static String ascii2String(String ASCIIs)
//package com.java2s; //License from project: Apache License public class Main { /**// w w w .jav a2 s .c om * @param ASCIIs * @return */ public static String ascii2String(String ASCIIs) { String[] ASCIIss = ASCIIs.split(","); StringBuffer sb = new StringBuffer(); for (int i = 0; i < ASCIIss.length; i++) { sb.append((char) ascii2Char(Integer.parseInt(ASCIIss[i]))); } return sb.toString(); } /** * @param ASCII * @return */ public static char ascii2Char(int ASCII) { return (char) ASCII; } }