判断一个String中是否有指定字符或字符串

String test=“qwer”;

if (test.contains("个we")){

    do;

  }

posted @ 2016-08-27 10:26  朱小勇  阅读(2356)  评论(0)    收藏  举报