gistfile1.txt package suanfa;import java.util.ArrayList;public class SelfNumbers {public static void main(String[] args) {ArrayList a1= new ArrayList();int temp=0;for(int i=1;i=10000;i++) {temp=i+i%10+(int)i/10;a1.add(temp);}for(int i=1;i=1
package suanfa;
import java.util.ArrayList;
public class SelfNumbers {
public static void main(String[] args) {
ArrayList a1= new ArrayList();
int temp=0;
for(int i=1;i<=10000;i++) {
temp=i+i%10+(int)i/10;
a1.add(temp);
}
for(int i=1;i<=10000;i++) {
if(!a1.contains(i))
System.out.println(i);
}
}
}
