diff options
| author | Ben Culkin <scorpress@gmail.com> | 2022-09-16 18:35:06 -0400 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2022-09-16 18:35:06 -0400 |
| commit | bbefaad1de12cea3210593c17db6e12334eb7903 (patch) | |
| tree | a7e4165b51ecf319eb41063f8e7f9b10d820020e /src/example/java/bjc/funcdata | |
| parent | e43dc808d7304b90327c1def4452f6e3d9946983 (diff) | |
Adjust a few things
Diffstat (limited to 'src/example/java/bjc/funcdata')
| -rw-r--r-- | src/example/java/bjc/funcdata/bst/BinarySearchTreeExample.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/example/java/bjc/funcdata/bst/BinarySearchTreeExample.java b/src/example/java/bjc/funcdata/bst/BinarySearchTreeExample.java index 9be96be..258b17d 100644 --- a/src/example/java/bjc/funcdata/bst/BinarySearchTreeExample.java +++ b/src/example/java/bjc/funcdata/bst/BinarySearchTreeExample.java @@ -64,11 +64,9 @@ public class BinarySearchTreeExample { * Unused CLI args */ public static void main(final String[] args) { - final Scanner input = new Scanner(System.in); - - runExample(input, System.out); - - input.close(); + try (Scanner input = new Scanner(System.in)) { + runExample(input, System.out); + } } private static void runExample(final Scanner input, OutputStream outpt) { |
