Java Hex to Int convertHexStringToInt(String hex)

Here you can find the source of convertHexStringToInt(String hex)

Description

convert Hex String To Int

License

Open Source License

Parameter

Parameter Description
hex 31 30

Return

16

Declaration

public static int convertHexStringToInt(String hex) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from  w w  w .ja  va  2  s .com*/
     *
     * @param hex
     *            31 30
     * @return 16
     */
    public static int convertHexStringToInt(String hex) {
        return Integer.valueOf(hex, 16);
    }
}

Related

  1. convertHexBytesToInt(byte[] hex)
  2. convertHexDigitAsInt(char c)
  3. convertHexStringToInt(String hexString)
  4. convertHexToDec(String in)
  5. convertHexToInt(String hex)
  6. hexChar2dec(char hex)