I am using a TreeMap
to store words of a text and the coordinates (row, column) of each word, TreeMap
it is defined as:
TreeMap<String, Double> mapa= new TreeMap<String, Double>();
My question is the following: can I add more fields to the parameter Double
? so that it would be as follows:
TreeMap<String, Double, Double> mapa= new TreeMap<String, Double, Double>();
and thus be able to enter the <"word", column, row >