From 378f661f7046f072e9fe2257bbf70b3a0d767800 Mon Sep 17 00:00:00 2001 From: Guo_1_9 Date: Fri, 11 Jan 2019 20:33:50 +0800 Subject: [PATCH] Update BinarySearch.java fix --- Searches/BinarySearch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Searches/BinarySearch.java b/Searches/BinarySearch.java index f655c074..6877a55f 100644 --- a/Searches/BinarySearch.java +++ b/Searches/BinarySearch.java @@ -72,7 +72,7 @@ class BinarySearch implements SearchAlgorithm { // Driver Program public static void main(String[] args) { // Just generate data - Random random = ThreadLocalRandom.current(); + Random r = ThreadLocalRandom.current(); int size = 100; int maxElement = 100000;