Skip to content

The AdvancedJavaList repository contains code for a Java program that showcases the use of the ArrayList and Collections classes to perform various operations on a list of Double values.

Notifications You must be signed in to change notification settings

aaurdanet/Java-Collections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

AdvancedJavaList

The AdvancedJavaList is a Java program that demonstrates the use of the ArrayList and Collections classes to perform various operations on a list of Double values. Features

PrintList Method:
    Prints the elements of the list using an iterator.

SortList Method:
    Sorts the list in ascending order using Collections.sort().

FindInList Method:
    Performs binary search on the list for a specific value.

FillZero Method:
    Fills the entire list with zeros using Collections.fill().

Usage

Clone the repository:

bash

git clone https://github.com/yourusername/AdvancedJavaList.git

Open the project in your preferred Java development environment.

Run the AdvancedJavaList class.

View the output in the console, which will demonstrate the different operations performed on the list.

Example

java

List numbers = new ArrayList<>(); numbers.add(1.5); numbers.add(2.35); numbers.add(-4.7); numbers.add(0.01);

PrintList(numbers); SortList(numbers); FindInList(numbers); FillZero(numbers);

Feel free to customize this README based on your project's specific details and preferences. Add more sections or details as needed.

About

The AdvancedJavaList repository contains code for a Java program that showcases the use of the ArrayList and Collections classes to perform various operations on a list of Double values.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages