// Current value, Min value, Max value, Step
SpinnerNumberModel spinnerModel = new SpinnerNumberModel(5, 0, 10, 1);
// In this example, Min is 0, Max is 10, Step/Increment is 1, and 5 is the set value
JSpinner spinner = new JSpinner(spinnerModel);
function lowest(arr) {
let min = Number.MAX_VALUE
for (let i = 0; i < arr.length; i++) {
let mean = 0
for (let j = 0; j < arr[i].length; j++) {
mean += arr[i][j]
}
mean /= arr[i].length
if (min > mean) {
min = mean
}
}
return min
}