Java ASCII to String ascii2Str(String s)

Here you can find the source of ascii2Str(String s)

Description

ascii Str

License

Open Source License

Declaration

public static String ascii2Str(String s) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static String ascii2Str(String s) {
        String[] chars = s.split(" ");
        StringBuffer result = new StringBuffer();
        for (int i = 0; i < chars.length; i++) {
            result.append((char) Integer.parseInt(chars[i]));
        }//from   w ww  .  j  ava 2 s  . c o  m
        return result.toString();
    }
}

Related

  1. ascii2String(String ASCIIs)
  2. asciiBytesToChar(byte[] bytes)
  3. asciiBytesToString(byte[] val)
  4. ASCIIToChar(final int ascii)