I like how Java has a Map where you can define the types of each entry in the map, for example .
What I\'m looking for is a type
just create a class like
class tuples { int x; int y; }
then create List of this objects of tuples
List list = new ArrayList();
so you can also implement other new data structures in the same way.