is it possible to create a function in java that supports any number of parameters and then to be able to iterate through each of the parameter provided to the function ?
Yes, using varargs.