# Multiple Type Dictionaries

**URL:** <https://discourse.processing.org/t/multiple-type-dictionaries/15786>\
**Category:** Beginners\
**Created:** [November 25, 2019, 12:22am UTC](https://discourse.processing.org/t/multiple-type-dictionaries/15786 "2019-11-25T00:22:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [November 25, 2019, 12:51am UTC](https://discourse.processing.org/t/multiple-type-dictionaries/15786/2 "2019-11-25T00:51:48Z")

</div>

> [@Mixed Datatype Arrays](https://discourse.processing.org/t/mixed-datatype-arrays/14673/5):
>
> The only way in pure Java is to go w/ datatype [Object](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Object.html). However, in order to read each element from such container, we need to (cast) each element back to its actual datatype. Which of course is not very practical; and therefore, not recommended. The alternative is to create a [class](https://processing.org/reference/class.html) containing all the needed datatypes as fields. // https://Discourse.Processing.org/t/mixed-datatype-arrays/14673/5 // GoToLoop (2019-Oct-13) final Mixed[] mix = { new Mixed("hello", 1, 2, 3.5), new Mixed("mix…

---

_[View the full topic](https://discourse.processing.org/t/multiple-type-dictionaries/15786)._
