Skip to content

Ph4ntom01/PLM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

This is my own implementation of:

  • Arraylist
  • Linkedlist
  • Sorting algorithms

Examples

ArrayList

// Instanciate the list.
PLMArrayList<Integer> list = new PLMArrayList<>();
list.add(3);
list.add(1);
list.add(9);
// Display the list in a user-friendly way.
list.display();
// Remove the element at the specified position.
list.remove(2);
list.display();

[3, 1, 9]

[3, 1]

LinkedList

// Instanciate the list.
PLMLinkedList<String> list = new PLMLinkedList<>();
list.add("Hello");
list.add("World");
list.add("!");
// Remove an element, only the first element who matches with the parameter will be deleted.
list.remove("World");
// Display the list in a user-friendly way.
list.display();

[Hello, !]

About

Personnal Library.

Topics

Resources

License

Stars

Watchers

Forks

Languages