Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to check if a char is equal to int java

int x = 3;
char y = '3';

if(Character.getNumericValue(y) == x) {
  System.out.println("the if statment would print this");
}
 
PREVIOUS NEXT
Tagged: #check #char #equal #int #java
ADD COMMENT
Topic
Name
6+7 =