public class Test4 {
public static void main(String[] args) {
func7();
}
public static void func7(){
String[] str = {"Allen","Smith","James","Martin","Ford"};
String st = null;
for(int i=0;i<str.length;i++){
if(str[i].contains("a")|str[i].contains("A")){
st = str[i];
System.out.println(st);
}
}
}
}