How to have an indefinite number of arguments in a Java method
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2635229/java-variadic-function-parameters">Java variadic function parameters</a>  </p>
</blockquote>



<p>I'm new to Java, so if this is common knowledge, I'm sorry.</p>

<p>I would like to be able to have an undefined/indefinite amount of variables being able to be passed to a function. like in <code>System.out.print()</code>, I can have a lot of variables passed to it... like in <code>System.out.print(x+" "+y);</code> I have 3 different values.</p>

<p>How would I do this in my own function?</p>
