package edu.xucd.demo03;
public class demo03 {
public static void main(String[] args) {
String[]str=new String[]{"111","222","333","444"};
System.out.println(ArrayAlg.getMiddle(str));
//测试能否返回整数数组的中间值
Integer[]zhengshu=new Integer[]{111,222,333,444,555};
System.out.println(ArrayAlg.getMiddle(zhengshu));
//测试能否返回任意类型的数组的中间值
Double[]xiaoshu=new Double[]{11.1,22.2,33.3,44.4,55.5};
System.out.println(ArrayAlg.getMiddle(xiaoshu));
}
}