Online Java Compiler By
JavaTpoint.com
public class HexToDecimalExample2{ public static void main(String args[]){ System.out.println(Integer.parseInt("a",16)); System.out.println(Integer.parseInt("f",16)); System.out.println(Integer.parseInt("121",16)); }}
Output