src/Hospital.java
/**
	 * Procedure to make sure that the input var does not go outside of the boundary between min and max
	 * 
	 * @param var, an integer
	 * @param min, an integer
	 * @param max, an integer
	 * @return
	 */
Procedure to make sure that the input var does not go outside of the boundary between min and max

@param var, an integer
@param min, an integer
@param max, an integer
@return
Procedure to make sure that the input var does not go outside of the boundary between min and max @param var an integer @param min an integer @param max an integer @return
public static int clamp(int var, int min, int max) {
		if(var >= max)
			return var = max;
		else if(var <= min)
			return var = min;
		else
			return var;
	}
public static int clamp ( int var , int min , int max ) { if ( var >= max ) return var = max ; else if ( var <= min ) return var = min ; else return var ; }
Procedure to make sure that the input var does not go outside of the boundary between min and max
Procedure to make sure that the input var does not go outside of the boundary between min and max