An open API service indexing awesome lists of open source software.

https://github.com/hyperxpro/hexdecimal

Convert Hex To Decimal and Decimal to Hex In Java
https://github.com/hyperxpro/hexdecimal

Last synced: 3 months ago
JSON representation

Convert Hex To Decimal and Decimal to Hex In Java

Awesome Lists containing this project

README

          

# HexDecimal
Convert Hex To Decimal and Decimal To Hex In Java

```Java
public class Main {

public static void main(String[] args) {
String Hex = "29374DB6F3488091C93C4816C11F4ACC";

HexToDecimal hexToDecimal = new HexToDecimal();
BigInteger decimal = hexToDecimal.getDecimalFromHex(Hex);

DecimalToHex decimalToHex = new DecimalToHex();
String DecimalToHex = decimalToHex.DecimalToHex(decimal);

System.out.println("Hex To Decimal: " + decimal);
System.out.println("Decimal To Hex: " + DecimalToHex);

/**
* Outputs:
*
* Hex To Decimal: 54785500394758532281144699898914884300
* Decimal To Hex: 29374DB6F3488091C93C4816C11F4ACC
*/
}

}
```