Coder Social home page Coder Social logo

java-sorting-searching's Introduction

Java Sorting and Searching

IFS L3T03 - Sorting and Searching

Description

This is a Java program that demonstrates different sorting and searching methods.

  1. The ArrayLists.java file contains:
  • An Album class with a constructor method, getter and setter methods, and a 'toString()' method to create two ArrayLists of Album objects (named 'albums1' and 'albums2').
  • A Selection Sort method that sorts the 'albums1' ArrayList by number of songs, in ascending order.
  • A Quick Sort method that sorts the 'albums2' ArrayList's objects into alphabetical order based on album names.
  • A Binary Search method to find a given album's index in 'albums2''s sorted ArrayList.
  1. The BubbleSort.java file contains:
  • A BubbleSort class that implements the Bubble Sort algorithm on the given ArrayList and prints out the sorted list.
  1. The SortAndSearch.java file contains:
  • A SortAndSearch class that implements the Linear and Binary Search algorithms on the given ArrayList to find a given element's index and implements the Insertion Sort method on the given ArrayList to print out the sorted list.

Installation, Setup and Usage

  1. Clone the repo and open with your preferred IDE (e.g. IntelliJ IDEA).
  2. In the IDE, open the file you wish to run and click on 'Run'.

Credits and References

Made by Nichole Dobbin, for my HyperionDev course. See L3T3_References.txt for the list of references I used in this project.

java-sorting-searching's People

Contributors

nicholedobbin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.