Skip to content

Commit

Permalink
Changed code style
Browse files Browse the repository at this point in the history
nikitap492 committed Apr 19, 2018
1 parent 014bfda commit ecfd0f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Searches/src/search/IterativeTernarySearch.java
Original file line number Diff line number Diff line change
@@ -62,7 +62,10 @@ public static void main(String[] args) {
Random r = new Random();
int size = 100;
int maxElement = 100000;
Integer[] integers = Stream.generate(() -> r.nextInt(maxElement)).limit(size).sorted().toArray(Integer[]::new);
Integer[] integers = Stream.generate(() -> r.nextInt(maxElement))
.limit(size)
.sorted()
.toArray(Integer[]::new);


//the element that should be found

0 comments on commit ecfd0f0

Please sign in to comment.