Answers for "convert a character to num in java"

0

convert character digit to int java

char x = '9';
int y = x - '0'; // gives the int value 9
Posted by: Guest on September-09-2021

Code answers related to "convert a character to num in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language