From a3b4e1421a53c729dd4a9940cc05abe6be16beba Mon Sep 17 00:00:00 2001 From: Libin Yang Date: Thu, 31 Jan 2019 21:09:03 +0800 Subject: [PATCH] Update DecimalToHexadecimal.java --- src/main/java/com/conversions/DecimalToHexadecimal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/conversions/DecimalToHexadecimal.java b/src/main/java/com/conversions/DecimalToHexadecimal.java index e41b825d..cce26666 100644 --- a/src/main/java/com/conversions/DecimalToHexadecimal.java +++ b/src/main/java/com/conversions/DecimalToHexadecimal.java @@ -16,7 +16,7 @@ public class DecimalToHexadecimal { int rem; String hex = ""; - while(decimal.compareTo(BigInteger.ZERO) > 0) { + while (decimal.compareTo(BigInteger.ZERO) > 0) { rem = decimal.mod(valueHex).intValueExact(); hex = hexChars[rem] + hex; decimal = decimal.divide(valueHex);