I would like to initialize an Array of pairs but my way is not fully correct. Here how I first wrote it:
Pair<String, Integer>[] pair = new Pair[5];
It is accepted and it works but there is still the following warning:
"Unchecked assignment:
'android.util.Pair[]'
to'android.util.Pair<Java.lang.String, Java.lang.Integer>[]'
...
I already tried to do like this:
Pair<String, Integer>[] pair = new Pair<String, Integer>[5];
but it doesn't work.