How to Convert ASCII to Character in Java


In this example, we will learn the method to convert ASCII to character in Java.

Source Code

package com.beginner.examples;

public class ASCII2Char {
  public static void main(String[] args) {
    int i = 97;
    System.out.println((char)i); // convert ASCII to character
  }
}

Output:

a
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments