public static void main( String[] args )
{
String col1 = "time";
String col2 = "num";
//双数据源的集合
ArrayList
输出结果:
[{num=x9, time=2021-01-09 10:10:00.0},
{num=y9, time=2021-01-09 10:10:00.0},
{num=x8, time=2021-01-08 10:10:00.0},
{num=y8, time=2021-01-08 10:10:00.0},
{num=x7, time=2021-01-07 10:10:00.0},
{num=y7, time=2021-01-07 10:10:00.0},
{num=x6, time=2021-01-06 10:10:00.0},
{num=y6, time=2021-01-06 10:10:00.0},
{num=x5, time=2021-01-05 10:10:00.0},
{num=y5, time=2021-01-05 10:10:00.0},
{num=x4, time=2021-01-04 10:10:00.0},
{num=y4, time=2021-01-04 10:10:00.0},
{num=x3, time=2021-01-03 10:10:00.0},
{num=y3, time=2021-01-03 10:10:00.0},
{num=x2, time=2021-01-02 10:10:00.0},
{num=y2, time=2021-01-02 10:10:00.0},
{num=x1, time=2021-01-01 10:10:00.0},
{num=y1, time=2021-01-01 10:10:00.0}]