Online Java Compiler By
JavaTpoint.com
public class IntToCharExample3{ public static void main(String args[]){ int a=1; char c=(char)(a+'0'); System.out.println(c); }}
Output