Jump to content

Found the issue, when comparing STRINGS, you must you equalsIgnoreCase.

 

For example :

 

 

var text = "Hello";

 

if (text.equalsIgnoreCase("Hello")){

    System.out.print("Bye");

}

 

 

 

The product of equals ignore case is a boolean.

Link to comment
https://linustechtips.com/topic/502016-help/#findComment-6702715
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×