Skip to content

Commit 0eef7f4

Browse files
committed
Update DecimalToBinary.java
Close ressource leak Scanner input
1 parent a45cbeb commit 0eef7f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Conversions/DecimalToBinary.java

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public static void conventionalConversion() {
3535
n /= 2;
3636
} //converting decimal to binary
3737
System.out.println("\tBinary number: " + b);
38+
input.close();
3839
}
3940

4041
/**

0 commit comments

Comments
 (0)