import java.util.Arrays;

/**
 * A program with a recursive method to find the closest value in an array to a
 * given value.
 * 
 * @author Mark Young (A00000000)
 * @author ____ _____ (A00______)
 */
public class Closest {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        System.out.println("Recursive Finding Closest Value");
        System.out.println("-------------------------------");
        Common.pause();
        findAndPrintClosest(10, new int[]{5, 8, 15, 21, 11});
        Common.pause();
        findAndPrintClosest(500, Common.randomNumbers(8, 0, 1000));
    }

    /**
     * Find the closest value to {@code num} in {@code numbers}. Print a
     * message showing the results.
     *
     * @param num the number we're looking for
     * @param numbers the numbers we're looking at
     * @return the value from {@code numbers} that's closest to {@code num}
     */

    /**
     * Find the closest value to {@code num} in the part of {@code numbers}
     * bounded by {@code begin} and {@code end}. Print a message showing the
     * results.
     *
     * @param ... ...
     * @return ...
     */

}
