java: how do I create an array of tuples?

how can I create an array of tuples in jsp (java) like (a:1, b:2) (c:3, d:4) ... ... ...

How do I add a tuple to a Swift Array??

I'm trying to add a tuple (e.g., 2-item tuple) to an array. var myStringArray: (String,Int)[]? = nil myStringArray ...