The java code of the program that finds the closest number and the closest number smaller than the entered number of the elements in the array.
Example:
The java code of the program that finds the closest number and the closest number smaller than the entered number of the elements in the array.
Example: