Skip to content

Commit 73770b2

Browse files
authored
fix: remove main method and resolve build issues
1 parent 7030bb4 commit 73770b2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/com/thealgorithms/arrays/MaximumElement.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.thealgorithms.arrays;
22

3+
34
/**
45
* This class provides a method to find the maximum element in an array.
56
*/
@@ -22,9 +23,4 @@ public static int findMax(int[] arr) {
2223

2324
return max;
2425
}
25-
26-
public static void main(String[] args) {
27-
int[] arr = {1, 5, 3, 9, 2};
28-
System.out.println("Maximum element: " + findMax(arr));
29-
}
3026
}

0 commit comments

Comments
 (0)