Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 752 Bytes

File metadata and controls

15 lines (11 loc) · 752 Bytes

Array and ArrayList Operations

Description

This Java program provides functionalities for working with arrays, including separating even and odd numbers and finding the smallest distance between neighboring elements.

Features

  • 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.

Files

  • 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.