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
My code is
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);
}
getting Error " weight cannot be resolved to a variable" Please help