public static void main1(String[] args) {
//实例化对象的同时 指定当前泛型类 的指定参数类型是Integer
MyArray<Integer> myArray = new MyArray<>();
//就可以存储 指定的数据类型
myArray.setObj(0,10);
myArray.setObj(1,78);
myArray.setObj(2,66);
Integer d = myArray.getPos(2);
System.out.println("=================");
MyArray<String> myArray2 = new MyArray<>();
myArray2.setObj(0,"gaobo");
myArray2.setObj(1,"bit");
String str = myArray2.getPos(0);
}