Home java How to convert char in INT?

How to convert char in INT?




1 + 2 how to read it right from the console?

Answer 1, Authority 100%

I explain.

Symbol code “1” – 49.

Symbol code “2” – 50.

49 plus 50 will be 99.

int a = character.getnumericvalue (num.charat (0)); // A will be 1

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions