Thanks for your suggestion. I have problems to create the array of pair in this static way.
"Can't create a generic array of Pair<Integer, Integer>"