Search
 
SCRIPT & CODE EXAMPLE
 

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");
}
Comment

PREVIOUS NEXT
Code Example
Java :: primefaces calendar min date validation 
Java :: how to change top of window in java 
Java :: how to set 2 decimal places in java 
Java :: javadoc links to url 
Java :: java event enter key 
Java :: java http request post 
Java :: display image from database in java servlet 
Java :: react native android gif 
Java :: gravity in java 
Java :: play sound on button click android studio 
Java :: how to find the angle of 2 coordinates java 
Java :: how to truncate an array in java 
Java :: arraylist string to string array 
Java :: java coding standards variables 
Java :: java int to int array 
Java :: convert string to byte java 
Java :: how to the text of an element in selenium java 
Java :: java string builder 
Java :: java equals ignore case 
Java :: json date format for localdate java 
Java :: iterator for array java 
Java :: Service vs Intent Service 
Java :: create method setsupportactionbar 
Java :: spring boot hibernate log sql 
Java :: recyclerview stop scrolling 
Java :: java try catch 
Java :: sort 2d array by column java 
Java :: java add com.google.guava dependancy maven 
Java :: java generate random id 
Java :: binding fragment android 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =