Android Byte to Char Convert getChar(byte b)

Here you can find the source of getChar(byte b)

Description

get Char

License

Open Source License

Declaration

public static char getChar(byte b) 

Method Source Code

//package com.java2s;

public class Main {
    public static char getChar(byte[] bytes) {
        return (char) ((0xff & bytes[0]) | (0xff00 & (bytes[1] << 8)));
    }// w  ww .j  a va2  s . c o m

    public static char getChar(byte b) {
        return (char) (0xff & b);
    }
}

Related

  1. makeChar(byte b1, byte b0)