title: Java function variables with default value
body: <p>I have some function in java and i want this function to have a parameter with a default value that is set to variable if no value sent, look like following:</p>
  
  <pre><code>private void test(int count=5)
   {
   }
  </code></pre>
  
  <p>So i can call the function with 2 ways:
  <code>test();</code> and <code>test(10);</code>
  <br />
  how do i do it?</p>