I have a function with the following declaration in c#. It allows me call the function without providing a value for the expectedDisplayValue
variable. The function automatically initializes the variable to ""
. I want a similar declaration in java. How can I do that?
public bool VerifyControlState(string identifier,string controltype, ButtonProperty buttonProperty, string expectedDisplayValue = "");