Question: looping through a list of methods
I have a number of methods that do the almost same thing:
public void setColorRed (int colorvalue);
public void setColorYellow (int colorvalue);
public void setColorBlue (int colorvalue);
Is there a way to place these methods in a list and then call each one from the loop using the same colorvalue?
Thanks in advance.