按照你的要求编写的Java程序如下:

import java.util.Scanner;
public class MM {
public static void main(String[] args) {
String contain="aeo";
Scanner sc=new Scanner(System.in);
String input=sc.nextLine();
for(int i=0;i
char c=contain.charAt(i);
if(input.indexOf(String.valueOf(c))==-1){
System.out.println("输入的字符串 "+input +" 不包含字符 "+c);
}else{
System.out.println("输入的字符串 "+input +" 包含字符 "+c);
}
}
}
}

运行结果:

we find out sth

输入的字符串 we find out sth 不包含字符 a

输入的字符串 we find out sth 包含字符 e

输入的字符串 we find out sth 包含字符 o