Java String Starts Wtih startsWithIgnoreCase(String str1, String str2)

Here you can find the source of startsWithIgnoreCase(String str1, String str2)

Description

starts With Ignore Case

License

Open Source License

Declaration

public static boolean startsWithIgnoreCase(String str1, String str2) 

Method Source Code

//package com.java2s;

public class Main {
    /** *///ww w  .j  a v  a  2  s .co  m
    public static boolean startsWithIgnoreCase(String str1, String str2) {
        if (str1.length() >= str2.length()) {
            return (str1.regionMatches(true, 0, str2, 0, str2.length()));
        } else {
            return (false);
        }
    }
}

Related

  1. startsWithIgnoreCase(String str, String prefix)
  2. startsWithIgnoreCase(String str, String prefix)
  3. startsWithIgnoreCase(String str, String prefix)
  4. startsWithIgnoreCase(String str, String prefix)
  5. startsWithIgnoreCase(String str, String start)
  6. startsWithIgnoreCase(String string1, String string2)
  7. startsWithIgnoreCase(String text, String prefix)
  8. startsWithIgnoreCase(String text, String value)
  9. startsWithIgnoreCase(String thisString, String prefix)