Skip to content

joshilakshya/ArrayOperations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages