Java - Cast byte to char

Description

Cast byte to char

Demo

public class Main{

  public static void main(String[] args) {
    byte b = 105;
    System.out.println((char) b);
  }//w  ww  . ja v a 2  s  .co  m
}

Related Topic