How can I write a method like the setPaintOrder method, which allows to use as many parameters as you want? And is there a possibility for this method to count how much parameters there are?
public void setPaintOrder(Class... class)