程序代写 COMP1110 Final Exam, Question 1.1

package comp1110.exam;

* COMP1110 Final Exam, Question 1.1
public class Q1Floor {

Copyright By PowCoder代写 加微信 powcoder

* Given an array of integers and a special value floor,
* return the smallest value in the array that is greater than
* If there is no value in the array that is greater than
* floor, return (floor-1).
* @param in An array of integers
* @param floor a target value to search for in the array
* @return the smallest value in the array that is larger than floor,
* or floor-1 if there is no such value
public static int findGreater(int[] in, int floor) {
return 0; // FIXME complete this method

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com