public static void main(String[] args) {
int[] AArray = { 3, 4, 6, 7 };
int[] BArray = { 19, 10, 49, 10, 323, 131, 341, 555 };
int tempB = 0;
Object[] CArray = new Object[] {};
List<Integer> c = new ArrayList<Integer>();
int temp = 0;
for (int i = 0; i < AArray.length; i++) {
for (int j = 0; j < BArray.length; j++) {
temp = AArray[i] - BArray[j];
if (temp < 0) {
temp = temp * (-1);
}
if(i==0 && j==0){
tempB = temp;
}
if(tempB>temp){
tempB = temp;
}
}
}
System.out.println("====最小的值====" + tempB);
}