Ascii value in java,Java Ascii Code.Ascii in java.

 ASCII value in Java. 





Hi Welcome to my Blog.

In this article we are going to discuss Ascii value in java.

Before you understand this code you have to knowledge about  Ascii value.


CODE:

import java.util.*;

class ascii{

public static void main(String[] args) {

           Scanner s1=new Scanner(System.in);

           System.out.println("Enter the Character");

  char ch =s1.next().charAt(0);

  int asciiValue=ch;

  System.out.println("ASCII value of given Character is "+asciiValue);

}

}


OUTPUT:

Enter the Character 

A

ASCII value of given Character is 65

Ascii Table is Here Check It Out


To check another Example of Ascii Code---- Click Here

Thank You?

0 K comment

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel