/ Published in: Java
I hope it's well explained, chars are actually very easy, but sometimes it takes a while to understand them.
- int ascii = (int) regularChar;
- // REMEBERING: CHARACTERS ARE ALREADY NUMBERS!
- // SUCH A FACT IS TRUE, THAT EVEN FOR SETTING THE CHAR MANUALLY
- // YOU CAN'T ENTER ANY SORT OF LITERAL CHARACTER. YOU NEED TO
- // ENTER IT'S ASCII VALUE, EVEN THOUGH IT DISPLAYS AS A CHARACTER.
You need to login to post a comment.