I am getting an ASCII value and I want to convert it into an integer because I know it\'s an Integer ASCII value.
int a=53;
This is an ASC
Do you mean a single character or a String?
char ch = int n = Character.forDigit(ch, 10);
or
int n = ch - '0';
Use Integer.parseInt() static method:
Integer.parseInt()
Oracle Docs Integer.parseInt()