From 9f6084eae3580af1d1878008a4563ba444587f56 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 11 Feb 2018 14:47:50 +0100 Subject: [PATCH] "else if" logic cleanup. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- Entiers/Entiers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Entiers/Entiers.java b/Entiers/Entiers.java index 0c813d9..fe92652 100644 --- a/Entiers/Entiers.java +++ b/Entiers/Entiers.java @@ -52,7 +52,7 @@ class Entiers { int middle = (first + last) / 2; if (value == int_array[middle]) return middle; - if (value > int_array[middle]) + else if (value > int_array[middle]) return binarySearch((middle + 1), last, value); return binarySearch(first, (middle -1), value); } -- 2.34.1