public class Main { public static void main(String[] args) { int chr = 'A'; System.out.println("The ASCII value of A is :"+(int)chr); } }
The ASCII value of A is :65
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Write a Java program to add two numbers without using any arithmetic operators
Write a Java program to print ‘Hello World!’ on screen
Write a Java program to compute the square root of an given integer
Write a Java program to count the number of even and odd elements in a given array
Write a Java program to compute the sum of the first 100 prime numbers