Answers for "char para int"

5

char to int

int n = Character.getNumericValue(char);
Posted by: Guest on December-07-2020
4

char to int

char a = 'a';
int ia = (int)a; 
/* note that the int cast is not necessary -- int ia = a would suffice */
Posted by: Guest on March-31-2022
-1

conversione char int

char c='5';int i=c-'0';          // c='5'=53   '0'=48 nella tabella ascii   53-48=5
Posted by: Guest on November-22-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language