Java program to convert a given ASCII value to its equivalent character has been shown here. Find here the algorithm, pseudocode and time-complexity of the problem. The flowchart of the program has been covered here.
Page content(s):
Additional content(s):
1. Java Program & output for ASCII to Character Conversion
Code has been copied
/******************************************** alphabetacoder.com Java proram for ASCII to character conversion *********************************************/ class ASCII { public static void main(String args[]) { // declare variables int v; char x; //assign the ASCII value v = 80; //convert and store the corresponding character x = (char) v; // display result System.out.print("Equivalent character of ASCII value " + v + " = " + x); } }
Output
Equivalent character of ASCII value 80 = P