Java String Ends With endsWithSomeChar(char cs[], String activationToken)

Here you can find the source of endsWithSomeChar(char cs[], String activationToken)

Description

Checks if the activationToken ends with some char from cs.

License

Open Source License

Declaration

public static boolean endsWithSomeChar(char cs[], String activationToken) 

Method Source Code

//package com.java2s;
/**/*from w w  w.  j  a  v a2  s. c  o m*/
 * Copyright (c) 2005-2013 by Appcelerator, Inc. All Rights Reserved.
 * Licensed under the terms of the Eclipse Public License (EPL).
 * Please see the license.txt included with this distribution for details.
 * Any modifications to this file must keep this entire header intact.
 */

public class Main {
    /**
     * Checks if the activationToken ends with some char from cs.
     */
    public static boolean endsWithSomeChar(char cs[], String activationToken) {
        for (int i = 0; i < cs.length; i++) {
            if (activationToken.endsWith(cs[i] + "")) {
                return true;
            }
        }
        return false;

    }
}

Related

  1. endsWithoutSlash(String url)
  2. endsWithSentenceSeparator(char[] token)
  3. endsWithSeparator(String str)
  4. endsWithSingleQuoteS(String s)
  5. endsWithSlash(final String path)
  6. endsWithSpace(String s)
  7. endsWithSpaces(final String text)
  8. endsWithStarsPattern(String text, int from)
  9. endsWithStartOfOther(String text, String textOther)