import java.util.Arrays;
/**
测试数组存储表格数据
*/
public class TestArrayTableData {
public static void main(String[] args) {
Object[] emp1 = {1001, "小a", 17, "讲师", "2000.6.6"};
Object[] emp2 = {1002, "小b", 18, "程序员", "2001.6.6"};
Object[] emp3 = {1003, "小c", 19, "销售", "2026.6.6"};
Object[][] tableData = new Object[3][];
tableData[0] = emp1;
tableData[1] = emp2;
tableData[2] = emp3;
for(Object[] temp : tableData) {
System.out.println(Arrays.toString(temp));
}
}
}