How to add multiple numbers using a method in java? : <p>I have a PHP function for adding multiple numbers,</p>

<pre><code>function add(...$numbers) {  
  $sum = 0;
  $ad = array();
  foreach ($numbers as $n) {  
      $sum += $n;
      $ad[] = $n;
  }
  $ret = "Sum of ".implode(" , ", $ad)." is ".$sum;
  return $ret;
}
</code></pre>

<p>what I want is how to convert this PHP function into java method,
THANK YOU VERY MUCH to those who will answer my question.</p>
