n4bcak3 / JavaLists

implementation of ArrayList and LinkedList

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Array List, Linked List Classes

Implemented classes based on the specified interface: MyLinkedList and MyArrayList without a similar Java-classes.

  • void add (Object e) - adds an element to the end of the list
  • void add (int index, Object element) - adds an element to the specified location list
  • void addAll (Object [] c) - add an array of items to the end of the list
  • void addAll (int index, Object [] c) - adds an array of the specified place in the list
  • Object get (int index) - Returns the element at index
  • Object remove (int index) - removes the element at index
  • void set (int index, Object element) - changes the value of the item
  • int indexOf (Object o) - Search index by value element
  • int size () - list size
  • Object [] toArray () - converts a list into an array of objects

About

implementation of ArrayList and LinkedList


Languages

Language:Java 100.0%