package comp1110.exam;
* COMP1110 Final Exam, Question 1.1
public class Q1Ceil {
Copyright By PowCoder代写 加微信 powcoder
* Given an array of integers and a special value ceil,
* return the largest value in the array that is less than
* If there is no value in the array that is less than
* ceil, return (ceil+1).
* @param in An array of integers
* @param ceil a target value to search for in the array
* @return the largest value in the array that is smaller than ceil,
* or ceil+1 if there is no such value
public static int findLess(int[] in, int ceil) {
return 0; // FIXME complete this method
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com