Here you can find the source of endsWithSomeChar(char cs[], String activationToken)
public static boolean endsWithSomeChar(char cs[], String activationToken)
//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; } }