About 539,000 results
Open links in new tab
  1. java - String contains - ignore case - Stack Overflow

    Dec 24, 2012 · 200 This question already has answers here: How to check if a String contains another String in a case insensitive manner in Java? (19 answers)

  2. Option to ignore case with .contains method? - Stack Overflow

    Apr 5, 2013 · Is there an option to ignore case with .contains() method? I have an ArrayList of DVD object. Each DVD object has a few elements, one of them is a title. And I have a method …

  3. How to check if a String contains another String in a case …

    Sep 18, 2008 · I did a test finding a case-insensitive match of a string. I have a Vector of 150,000 objects all with a String as one field and wanted to find the subset which matched a string.

  4. In Java, how do I check if a string contains a substring (ignoring …

    Closed 12 years ago. I have two String s, str1 and str2. How do I check if str2 is contained within str1, ignoring case?

  5. Ignore case for 'contains' for a string in Java - Stack Overflow

    14 This question already has answers here: How to check if a String contains another String in a case insensitive manner in Java? (19 answers)

  6. How to use contains and equalsIgnoreCase in string

    Feb 20, 2013 · Is there a way to check if a string contains something while not being case sensitive? For example: (this code is invalid it's just for you to get a basic understanding of my …

  7. string - Ignoring upper case and lower case in Java - Stack Overflow

    You ignore case when you treat the data, not when you retrieve/store it. If you want to store everything in lowercase use , in uppercase use . Then when you have to actually treat it, you …

  8. java - Array contains () without case sensitive lookup? - Stack …

    -1 it will require you to write your own contains() method. pointers for custom contains(): iterate over all the elements in the list. compare the parameter string with all the values in to make …

  9. Java Set<String> equality ignore case - Stack Overflow

    7 Unfortunately, Java does not let you supply an external "equality comparer": when you use strings, HashSet uses only built-in hashCode and equals. You can work around this problem …

  10. Checking if an ArrayList contains a certain String while being case ...

    Oct 12, 2016 · How can i search through an ArrayList using the .contains method while being case insensitive? I've tried .containsIgnoreCase but found out that the IgnoreCase method …