-4
String ORIGINAL = "This is my demo string";
String search = "demo";

如果“demo”退出到 ORIGINAL 中,我想得到结果为真或假,那么结果为真,否则返回假

4

1 回答 1

1
if(ORIGINAL.contains(search))
     //found
else
    //not found
于 2012-05-17T08:46:11.160 回答