Okay so I have a function that looks like this:
public void createMap(String mapName){
ArrayList<Point> Positions = new ArrayList<Point>();
Positions = Maps.map1;
...
}
where Maps is another class, and map1 is a method in that class that returns an ArrayList of points.
What I want to do is make it so that instead of writing Positions = Maps.map1, I want to dynamically call the methods in Maps based on the value of the string mapName. How would I go abouts doing this?