Data type practical(part 11)

sr if we r taking an char value n storing it in ch,then how can we compare it with any int value??

suppose char ch=‘2’;
then ‘2’-‘0’ will be equal to int 2.

or
just convert the char into string
String str=ch+" ";

then convert the string into int

int val=Integer.parseInt(str);

hope this will help u
pls rate my work so that i can improve myself