Java tutorial
//package com.java2s; public class Main { private static final String URL_MAIN_TAOBAO_WORD = "taobao"; /** * @brief Check whether url is a taobao like one * * @param url [IN] url value * * @return Return true if url is a taobao like one */ public static boolean isTaoBaoLikeUrl(String url) { if (url != null) { if (url.contains(URL_MAIN_TAOBAO_WORD)) { return true; } } return false; } }