Implement this API. You do not have to
include javadoc comments. If you do not know the value of the constant,
just choose a value yourself.
public class Suitcase {
private Suitcase() {}
public static final double LIMIT = 23.5;
/**
* Checks whether the given weight is over the limit.
*
* @param weight - the weight of a suitcase.
* @pre. weight >= 0
* @return true if the given weight is over the limit, false otherwise.
*/
public static boolean isOverLimit(double weight) {
if (weight > LIMIT) {
return true;
} else {
return false;
}
}
}