I want to have a vector of integer pairs in Java so I can store Cartesian coordinates in each cell. So it would look like :
|2,3|4,5|5,6|6,7|
Each cell of the vector has 2 ints. I tried doing this:
Vector<pair<Integer,Integer>> test = new Vector<pair<Integer,Integer>>();
But java could not resolve the word pair (even when I did ctrl+shift+O in eclipse to import all relevant libraries). Then I tried this:
Vector<pair<int,int>> test= new Vector<pair<int,int>>();
But it doesn't like the keyword int
for some reason. Any ideas on how to make a vector of int pairs in Java?