Java - Cast int to char

Description

Cast int to char

Demo

public class Main{

  public static void main(String[] args) {
    for(int i = 50; i < 150; i++) {
      System.out.print((char) i);
    }//from  ww  w  .  j av  a2s  . c  om
  }
}

Related Topic