I want to know that how converting hexadecimal to decimal and binary to decimal using java program.