Java Char Convert To CharToASCII(final char character)

Here you can find the source of CharToASCII(final char character)

Description

Convert the characters to ASCII value

License

Open Source License

Parameter

Parameter Description
character character

Return

ASCII value

Declaration

public static int CharToASCII(final char character) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*  w ww.ja  v a  2 s  .c  om*/
     * Convert the characters to ASCII value
     *
     * @param character character
     * @return ASCII value
     */
    public static int CharToASCII(final char character) {
        return (int) character;
    }
}

Related

  1. charTo2Byte(char x)
  2. charToBasicType(char c, Class clazz)
  3. charToBoolean(char c)
  4. charToBuffer(char ch, byte[] ioBuffer)
  5. charToCDATA(char ch)