Is indexOf case sensitive Java?

The indexOf() method returns the index number where the target string is first found or -1 if the target is not found. Like equals(), the indexOf() method is case-sensitive , so uppercase and lowercase chars are considered to be different.

Sizin İçin Seçtik  How do you write an equalsIgnoreCase?

Leave a Reply

Your email address will not be published. Required fields are marked *

Is indexOf case-sensitive Java?

The indexOf() method returns the index number where the target string is first found or -1 if the target is not found. Like equals(), the indexOf() method is case-sensitive , so uppercase and lowercase chars are considered to be different.

Sizin İçin Seçtik  Al sat yaparak para kazanılır mı?

Leave a Reply

Your email address will not be published. Required fields are marked *