Not in Java. You can use ArrayList<MyObject>
and make MyObject
flexible enough to cope with more than one type.
In other more-flexible languages you can be more direct. In Ruby, for example:
stuff = ["a", :a, 1, ["a", :a], {a: 1}]
=> ["a", :a, 1, ["a", :a], {:a=>1}]