# LinkedList vs ArrayList

**URL:** <https://discourse.processing.org/t/linkedlist-vs-arraylist/19946>\
**Category:** Coding Questions\
**Created:** [April 20, 2020, 12:17am UTC](https://discourse.processing.org/t/linkedlist-vs-arraylist/19946 "2020-04-20T00:17:15Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [April 21, 2020, 7:10pm UTC](https://discourse.processing.org/t/linkedlist-vs-arraylist/19946/18 "2020-04-21T19:10:34Z")

</div>

> [@noel](#):
>
> On OpenProcessing it does not work, however.

It works for me for some reason. 🤔

In order to test ArrayQueue, I’ve picked 2 old sketches using container ArrayDeque as a Queue: ⛏  
[Docs.Oracle.com/en/java/javase/11/docs/api/java.base/java/util/ArrayDeque.html](http://Docs.Oracle.com/en/java/javase/11/docs/api/java.base/java/util/ArrayDeque.html)

And then replaced that w/ my own ArrayQueue, and both sketches were still perfectly OK:👌

> <https://gist.github.com/GoToLoop/571eaa4797963ffbacdd706542c30637>
>
> There are more than three files. show original

> **[Trailing Deque \[Java/Pjs\] - GoToLoop - OpenProcessing](https://openprocessing.org/sketch/878488)**
>
> Processing/Pjs Cross-mode ArrayQueue container demo

> <https://gist.github.com/GoToLoop/145418d1dfb062c7c41a630bce5b8374>
>
> There are more than three files. show original

> **[Brownian Motion \[Java/Pjs\] - GoToLoop - OpenProcessing](https://openprocessing.org/sketch/878458)**
>
> https://en.Wikipedia.org/wiki/Brownian\_motion

---

_[View the full topic](https://discourse.processing.org/t/linkedlist-vs-arraylist/19946)._
