if判断某个字符串中包含某个字符

str="qweee";

//判断str是否包含w

if(str.indexOf("w")){

System.out.println("......");
}

猜你喜欢

转载自www.cnblogs.com/dhqz/p/10103745.html
今日推荐