mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-25 13:34:54 +08:00
* reduce code
* add function overriding * update test
This commit is contained in:
@ -5,7 +5,7 @@ public class FindMax {
|
||||
//Driver
|
||||
public static void main(String[] args) {
|
||||
int[] array = {2, 4, 9, 7, 19, 94, 5};
|
||||
System.out.println("max = " + findMax(array));
|
||||
assert findMax(array) == 94;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user