answersLogoWhite

0


Best Answer

In order to print a character using its ASCII value, you need to first assign it to a char value like this:

char c = (char) 65;

In this example, we are casting the int 65 to a char, which converts it to an 'A', since 65 is the ASCII value for the capital letter 'a'.

Next, you can print it out if you want:

System.out.println(c);

That's pretty much all there is to it!

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to print a symbol in Java using the ASCII value?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you display the square root symbol on the output screen using Borland C Plus Plus?

Its Unicode value is 221A according to System tool Character map Advanced view Unicode subrange Math operators. But I haven't done C in awhile, so I don't know how to or if you can. ASCII value of root symbol is 251. In C we can print this symbol by printing the character value as below printf("%c",251); this will print the root symbol


What is ascii value of smily face?

There is no ASCII value of :-) ASCII encodes only single characters, assigning a numerical 0-127 value to each character. However, if you want the ASCII encoding of a smiley, here's some samples (using Hex values): :-) 0x3A2D29 :) 0x3A29


How do you find the ASCII value of numbers greater than 9?

You can find the ASCII value of numbers greater than 9 using the following functions: std::to_string or boost::lexical_cast or std::ostringstream depending on the compiler that you are using.


What is ASCII value of 5?

Ascii value of 5 is 53.


What is ASCII value of 0?

The ascii value of zero - is 48.


What is the C plus plus code to print all ASCII codes and the equivalent characters?

Although character data types such as char are intrinsically numeric, whenever you print a char you automatically print the symbol associated with the character code (the char's value), never the code. In order to print the code you must cast the character to a numeric data type, such as int. char c = 'A'; // ASCII value 65 decimal (0x41) std::cout << static_cast<int>(c); // puts the value 65 on std::cout


What is the ascii value for c?

The ASCII value for "C" is 67, for "c", 99.


What is the ASCII value of 92?

\ is the character for 92 in ASCII.


What is the binary equivalent of the word Network using ASCII encoding?

ASCII character array (including null-terminator): {'N','e','t','w','o','r','k','\0'} ASCII character codes (decimal): {78,101,116,119,111,114,107,0} ASCII character codes (octal): {4,7,1,4,5,3,5,0,7,3,5,5,7,3,4,4,6,5,4,0,0} ASCII character codes (hexadecimal): {4E,65,74,77,6F,72,6B,00} ASCII character codes (binary): {01001110,01100101,01110100,01110111,01101111,01110010,01101011,00000000} When treated as a 64-bit value, the ASCII-encoded word "Network" has the decimal value 5,649,049,363,925,854,976.


What is the ASCII value of a?

deepak


What is the decimal value of the ASCII letter K?

The ASCII value of capital K is 75. For a small k it is 107.


Ascii value of 255?

ASCII standardizes characters between 0 and 127.