You can convert a hexadecimal to integer using two different methods as shown below:

 int i = Integer.valueOf("B8DA3", 16).intValue();

   or

   int i = Integer.parseInt("B8DA3", 16);