private void function(Integer[] a, String str = "") like in PHP
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/997482/does-java-support-default-parameter-values">Does Java support default parameter values?</a>  </p>
</blockquote>



<p>Is it possible to do somethink like this </p>

<pre><code>private void function(Integer[] a, String str = "")
</code></pre>

<p>like in PHP. If I don't provide str, it will just be empty. In PHP it's possible, in JAVA it gives me error. Or the only solution here is to create two methods like this?</p>

<pre><code>private void function(Integer[] a, String str)
private void function(Integer[] a)
</code></pre>

<p>Thank you.</p>
