Java Program to Print the Character of given ASCII Value

Get a ASCII value from user (0 to 255) and display the corresponding character

Sample Input 1:

75

Sample Output 1:

K

Sample Input 2:

97

Sample Output 2:

a

Program or Solution

				
			
					
//To Print The Character Of Given Ascii Value...

import java.util.*;

class Program
{
  public static void main(String args[])
  {
      int val;
     char ascii;
     Scanner sc=new Scanner(System.in);

     System.out.println("Enter The Value:");
     val=sc.nextInt();

     ascii=(char)val;

     System.out.println("The Output Is:"+ascii);
  }
}
			
				
			

Program Explanation

converting an integer to character using (char) returns the ascii value of the number.

Comments

ubaTaeCJ
-1 OR 2+573-573-1=0+0+0+1 --
ubaTaeCJ
-1 OR 3+573-573-1=0+0+0+1 --
ubaTaeCJ
-1 OR 3*2<(0+5+573-573) --
ubaTaeCJ
-1 OR 3*2>(0+5+573-573) --
ubaTaeCJ
-1 OR 2+152-152-1=0+0+0+1
ubaTaeCJ
-1 OR 3+152-152-1=0+0+0+1
ubaTaeCJ
-1 OR 3*2<(0+5+152-152)
ubaTaeCJ
-1 OR 3*2>(0+5+152-152)
ubaTaeCJ
-1' OR 2+592-592-1=0+0+0+1 --
ubaTaeCJ
-1' OR 3+592-592-1=0+0+0+1 --
ubaTaeCJ
-1' OR 3*2<(0+5+592-592) --
ubaTaeCJ
-1' OR 3*2>(0+5+592-592) --
ubaTaeCJ
-1' OR 2+84-84-1=0+0+0+1 or 'A8Hewby9'='
ubaTaeCJ
-1' OR 3+84-84-1=0+0+0+1 or 'A8Hewby9'='
ubaTaeCJ
-1' OR 3*2<(0+5+84-84) or 'A8Hewby9'='
ubaTaeCJ
-1' OR 3*2>(0+5+84-84) or 'A8Hewby9'='
ubaTaeCJ
-1" OR 2+714-714-1=0+0+0+1 --
ubaTaeCJ
-1" OR 3+714-714-1=0+0+0+1 --
ubaTaeCJ
-1" OR 3*2<(0+5+714-714) --
ubaTaeCJ
-1" OR 3*2>(0+5+714-714) --
ubaTaeCJ
if(now()=sysdate(),sleep(15),0)
ubaTaeCJ
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
ubaTaeCJ
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
ubaTaeCJ
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
ubaTaeCJ
-1; waitfor delay '0:0:15' --
ubaTaeCJ
-1); waitfor delay '0:0:15' --
ubaTaeCJ
1 waitfor delay '0:0:15' --
ubaTaeCJ
oD55P5ZE'; waitfor delay '0:0:15' --
ubaTaeCJ
-5 OR 102=(SELECT 102 FROM PG_SLEEP(15))--
ubaTaeCJ
-5) OR 565=(SELECT 565 FROM PG_SLEEP(15))--
ubaTaeCJ
-1)) OR 859=(SELECT 859 FROM PG_SLEEP(15))--
ubaTaeCJ
sOqMt27v' OR 171=(SELECT 171 FROM PG_SLEEP(15))--
ubaTaeCJ
adtJtnBZ') OR 402=(SELECT 402 FROM PG_SLEEP(15))--
ubaTaeCJ
wok6psIK')) OR 529=(SELECT 529 FROM PG_SLEEP(15))--
ubaTaeCJ
*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
ubaTaeCJ
'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
ubaTaeCJ
1'"
ubaTaeCJ
@@OZVWc