check this solution if you are going to develop it yourself. if fact it is already developed, you don’t have to invent one.
String hexValue = "put your hex in quotes";
int decimalValue = Integer.parseInt(hexValue, 16);
Hope it will help
4
solved I am developing a hexadecimal to decimal converter