Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java convert char to int

char something = '1';
int value = Integer.parseInt(something + "");
System.out.println(value);  // prints 1
 
PREVIOUS NEXT
Tagged: #java #convert #char #int
ADD COMMENT
Topic
Name
7+9 =