数组存储表格数据

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));
      }
  }
  
}
上一篇:vue3跟新视图遇见神奇现象


下一篇:vue element-ui el-form el-table 表单查询、表格展示(可滚动加载)