Hi everyone! I need to create two methods numbersInRange and nearestToTarget. The first method numbersInRange, which I have completed, just returns an integer giving the number of elements in the array whose value is greater than the parameter 60 and less than the parameter 80. The second method is supposed to return the value of the integer in array closest to the target, which is 93 in this case. If there is more than one such integer in the array, the first such element in array needs to be returned. Here is the whole code, note that I have completed the first method already. Please help me in comleting the second method!
In the future, could we please focus efforts on helping someone to learn to figure out the solutions - not on giving them the solutions? Thank you. [ April 18, 2004: Message edited by: Dirk Schreckmann ]