string summer='abcdefg';

if (summer.indexof('g')!=-1)

{

这个字符串中带有g的字符

}

else

{

这个字符串中不存在g的字符!

}

相关文章: