Java String Ends With endsWith(String baseString, String compareString)

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

Description

endWith

License

LGPL

Declaration

public static boolean endsWith(String baseString, String compareString) 

Method Source Code

//package com.java2s;
/**//from ww w  .  j a  v a 2s .  c  om
* 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 {
    /**
    * endWith
    */
    public static boolean endsWith(String baseString, String compareString) {
        if (baseString == null)
            return false;
        else
            return baseString.endsWith(compareString);
    }
}

Related

  1. endsWith(final String str, final String... suffixes)
  2. endsWith(final String string, final String[] suffixes)
  3. endsWith(final StringBuilder builder, final char match)
  4. endsWith(int[] data, int[] ends)
  5. endsWith(String a, char[] b)
  6. endsWith(String filePath, String extension)
  7. endsWith(String fullString, String subString)
  8. endsWith(String haystack, String needle)
  9. endsWith(String in, String str)