Here you can find the source of toBigIntegerFromHex(String val)
Parameter | Description |
---|---|
val | string to parse |
public static BigInteger toBigIntegerFromHex(String val)
//package com.java2s; //License from project: Open Source License import java.math.BigInteger; public class Main { /**//from w w w .j a va2s . c o m * Parses 0x representation of the {@link BigInteger} from string * @param val string to parse * @return parsed */ public static BigInteger toBigIntegerFromHex(String val) { BigInteger n = new BigInteger(val.replace("0x", ""), 16); return n; } }