modified error

This commit is contained in:
SeonJae 2017-12-09 16:58:43 +09:00
parent 382eb2ff43
commit 0a3b445b08

View File

@ -3,7 +3,7 @@ import java.util.*;
import java.util.Scanner; import java.util.Scanner;
import javax.swing.*; import javax.swing.*;
public class HexaToBin { public class HexaDecimalToBinary {
private final int LONG_BITS = 8; private final int LONG_BITS = 8;
@ -28,10 +28,10 @@ public class HexaToBin {
//Testing Numbers: //Testing Numbers:
String[] hexNums = {"1", "A1", "ef", "BA", "AA", "BB", String[] hexNums = {"1", "A1", "ef", "BA", "AA", "BB",
"19", "01", "02", "03", "04"}; "19", "01", "02", "03", "04"};
Convert objConvert = new Convert(); HexaDecimalToBinary objConvert = new HexaDecimalToBinary();
for (String num : hexNums) { for (String num : hexNums) {
objConvert.convert(num); objConvert.convert(num);
} }
} }
} }