Using Named Parameters in java Class
<p>I have a use case to use named and optional parameter.I tried to use named parameter as in a tutorial but it doesn't work</p>

<p>My code  is</p>

<pre><code>public static void Main(String[] args)
  {
     System.out.println((CalculateBMI(weight= 123, height: 64));
  }
  public static int CalculateBMI(int weight, int height)
  {
      return (weight * 703) / (height * height);
  }
</code></pre>

<p>getting Error "  weight cannot be resolved to a variable" 
Please help</p>
