Update DecimalToBinary.java

Close ressource leak Scanner input
This commit is contained in:
Alexandra Englert
2020-03-20 21:09:57 +01:00
parent a45cbeb155
commit 0eef7f4737

View File

@ -35,6 +35,7 @@ class DecimalToBinary {
n /= 2;
} //converting decimal to binary
System.out.println("\tBinary number: " + b);
input.close();
}
/**