![JAR search and dependency download from the Maven repository](/logo.png)
com.github.levkoposc.MathTools Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtools Show documentation
Show all versions of jtools Show documentation
JTools is simple tools for Java
package com.github.levkoposc;
public final class MathTools {
public double average(int[] numbers){
if (numbers.length == 0)
return 0;
double sum = 0;
for (int number : numbers)
sum += number;
return sum / numbers.length;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy