Skip to content

Commit 35979f9

Browse files
authored
Update LinearSearchIterative.java
1 parent f6fbe4b commit 35979f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/java/LinearSearchIterative.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
public class LinearSearchIterative {
22
public static void main(String[] args) {
3-
int array_1[] = {1, 2, 40, 233, 78, 83, 456};
4-
System.out.println(LinearSearch(array_1, 40));
5-
System.out.println(LinearSearch(array_1, 3));
3+
int array[] = {1, 2, 40, 233, 78, 83, 456};
4+
System.out.println(LinearSearch(array, 40));
5+
System.out.println(LinearSearch(array, 3));
66
}
77

88
public static int LinearSearch(int array[], int value) {

0 commit comments

Comments
 (0)