In the MOSH java course. How to pass the constructor input like 'paraname:value'

Please ref this image url for my question.

constructor input with paraname:value

How to pass the constructor input like ‘paraname:value’
new Employee(
baseSalary:50_000, hourRate:20)

and also

I can not pass the compile JDK 15 for ‘50_000’
How to do this?

Is this only for intellj ide?

Thank you :slightly_smiling_face:

Don’t write the parameter names when passing arguments to constructors or methods. The IDE will automatically add them for readability but they are nothing you type.

Just type new Employee(50_000, 20)

Ok, I understand. Thanks your help.