I'm creating a method:
private boolean method(String... arguments){
for (String argument : arguments) {
...
}
return true;
}
I'd like to know how many arguments are passed to my method.
Is there is a clean way of doing this, instead of just creating a method that would iterate each argument and count them one by one?
My aim would be to return false if the number of arguments passed to my method is odd.