Looks like you've got it. You call it like this:
authenticate(username, password, someOtherArgument, yetAnotherArgument, stillAnotherArgument);
And then inside your method, args[0]
will contain someOtherArgument
, args[1]
will contain yetAnotherArgument
and args[2]
will contain stillAnotherArgument
.