public static void main(String[] args) {
String[] str = new String[1000];
for (int i = 0; i < str.length; i++) {
str[i] = i+"";
}
System.out.println("所有包含4的数字:");
for (int i = 0; i < str.length; i++) {
if(str[i].indexOf("4") != -1){
System.out.print(str[i]+"\t");
}
}
}