This Java program provides functionalities for working with arrays, including separating even and odd numbers and finding the smallest distance between neighboring elements.
-
Even and Odd Separation:
- Accepts numbers from the user and places them into separate arrays based on whether they are even or odd.
-
Find Smallest Distance in Array:
- Identifies two adjacent numbers in an array with the smallest difference and returns the index of the first number.
- Main.java - Entry point of the program, providing a menu for selecting operations.
- ArrayFunctions.java - Implements the logic for even-odd separation and smallest distance calculation.