File tree 1 file changed +2
-2
lines changed
src/main/java/com/thealgorithms/maths 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ private Average() {
19
19
* @return the average of the given numbers
20
20
* @throws IllegalArgumentException if the input array is {@code null} or empty
21
21
*/
22
- public static double computeAverage (double [] numbers ) {
22
+ public static double average (double [] numbers ) {
23
23
if (numbers == null || numbers .length == 0 ) {
24
24
throw new IllegalArgumentException ("Array must not be null or empty." );
25
25
}
@@ -37,7 +37,7 @@ public static double computeAverage(double[] numbers) {
37
37
* @return the average of the given numbers
38
38
* @throws IllegalArgumentException if the input array is {@code null} or empty
39
39
*/
40
- public static int computeAverage (int [] numbers ) {
40
+ public static int average (int [] numbers ) {
41
41
if (numbers == null || numbers .length == 0 ) {
42
42
throw new IllegalArgumentException ("Array must not be null or empty." );
43
43
}
You can’t perform that action at this time.
0 commit comments