I am trying to have optional parameters in my method. I found the boolean... test, and it works. But whenever I try it with a second one, it doesn't work.
Is there a possibility to put two or more (of same type eg: 2 optional booleans) in the parameter list?
Code I have now:
public void addJButton(boolean... yo){}
What I want:
public void addJButton(boolean... yo, boolean... yo2){}