I have a loaded image of a country and an int array with the coordinates and population of each city, and another string array with the names of the cities. I want to combine them and have the names of the cities appear in the picture in the position next to them. How could I do that? Should I select the X and Y positions?
Use the same index
i e.g. for both
text(names[i], mainList[i], mainList [i]);
So much effort has been put to solve a similar question. Check solution 11+ of this thread.