Java String Starts Wtih startsWith(String baseString, String compareString)

Here you can find the source of startsWith(String baseString, String compareString)

Description

startWith

License

LGPL

Declaration

public static boolean startsWith(String baseString, String compareString) 

Method Source Code

//package com.java2s;
/**/*w  w  w .  j av a  2  s.c  o m*/
* Converts a line of text into an array of lower case words using a
* BreakIterator.wordInstance().
* <p>
* 
* This method is under the Jive Open Source Software License and was written
* by Mark Imbriaco.
* 
* @param text
*          a String of text to convert into an array of words
* @return text broken up into an array of words.
*/

public class Main {
    /**
    * startWith
    */
    public static boolean startsWith(String baseString, String compareString) {
        if (baseString == null || compareString == null)
            return false;
        else
            return baseString.startsWith(compareString);
    }
}

Related

  1. startsWith(final String searchString, final String crit)
  2. startsWith(final String source, final String prefix)
  3. startsWith(final String src, final String sub)
  4. startsWith(final String str, final char prefix)
  5. startsWith(final String str, final String... prefixes)
  6. startsWith(String check, String doesStartWith)
  7. startsWith(String cid1, String cid2)
  8. startsWith(String comparee, char comparant)
  9. startsWith(String inStart, String inValue)