Java ASCII ascii(final int c)

Here you can find the source of ascii(final int c)

Description

ASCII.

License

Open Source License

Parameter

Parameter Description
c the c

Return

the char

Declaration

public static char ascii(final int c) 

Method Source Code

//package com.java2s;

public class Main {
    /**//from   ww w. j  av  a 2  s  . c o m
     * ASCII.
     * 
     * @param c
     *            the c
     * @return the char
     */
    public static char ascii(final int c) {
        return (char) ((c) <= 9 ? (c) + '0' : (c) + 'A' - 0xA);
    }
}

Related

  1. ascii(String string)
  2. ascii2Bcd(byte[] asc)
  3. ascii2BCD(byte[] val, int len)
  4. AsciiBTAddressToBytes(String btAddress)