Answer:
The required code is given below:
Step-by-step explanation:
public class Minimum {
public static Comparable min(Comparable[] values) {
if (values == null || values.length == 0) {
return null;
} else {
Comparable minValue = values[0];
for (int i = 0; i < values.length; i++) {
if (values[i].compareTo(minValue) < 0) {
minValue = values[i];
}
}
return minValue;
}
}
}