日期:2014-05-20 浏览次数:21222 次
public class SleepTest {
public static void main(String[] args) throws InterruptedException {
int[] result = new int[Integer.MAX_VALUE];
Integer[] a = {1, 2, 3, 4, 5};
Integer[] b = {3, 4, 5, 6, 7};
for(int i=0;i<a.length;i++){
result[a[i]]=1;
}
for(int i=0;i<b.length;i++){
if(result[b[i]]==1){
System.out.print(b[i]);
}
}
}
}