Hi there
You can't set up a method in Java to accept a varying number of arguments like you can in C++. What you can do is overload the method to accept different numbers of arguments. Something like this:
this is a fairly simplistic example but
you should get the idea of how it works. In your code you would just call whichever method is most appropriate based on your logic.
hope that helps
------------------
Dave
Sun Certified Programmer for the Java� 2 Platform