这个问唯含漏题,首先要将string数组转换成list集合,然后判断list集合中是否存在
public static void main(String[] args) {
//定义数组
String aa []={"timo","kainan","naer","lanbo"};
//数组转换成list
List
if(list.contains("timo")){
System.out.println("有提莫");
}else{
System.out.println("没老手有提莫"指烂);
}
}