What can I do to resolve this error?

Main.java:8: error: cannot find symbol

if (l == r && strcmp(str,check) > 0)

        ^

symbol: method strcmp(String,String)

location: class Main

1 error

@rdadhich,

To compare strings you can use str1.equals(str2) or str1.compareTo(str2).

Also, please your complete code.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.