public class HexToDecimal {
public static void main(String[] args) {
String hexStr = "A"; // Example hex number
int decimal = Integer.parseInt(hexStr, 16);
System.out.println(decimal);
}
}
10