如何一次获取数组列表

时间:2019-10-22 09:37:48

标签: java selenium katalon-studio

在我的控制台中,可以看到下面的一组数组列表是通过循环生成的(不是一次生成的)

    [09/25/2019, $221.03, 22,481,010, $218.55, $221.5, $217.1402] 
some output stuff ..
    [09/24/2019, $217.68, 31,434,370, $221.03, $222.49, $217.19] 
some output stuff ..
    [09/23/2019, $218.72, 19,419,650, $218.95, $219.84, $217.65] 
some output stuff ..
    [09/20/2019, $217.73, 57,977,090, $221.38, $222.56, $217.473] 
some output stuff ..
    [09/19/2019, $220.96, 22,187,880, $222.01, $223.76, $220.37] 

我如何一次在控制台/或日志中看到这些值,重要的是我需要在表头下获取这些值

表头是“ DATE CLOSE/LAST VOLUME OPEN HIGH LOW

代码:

ArrayList<Integer> arrlist = new ArrayList<Integer>();

    for(int i = 1 ; i<=18 ; i++){

        String abc = CustomKeywords.'nasdaqKeyword.accesstoTable.navigatetoGettablevalueFirstcol'(Integer.toString(i));          

         arrlist.add(abc);

    for(int j = 1 ; j<=5 ; j++){

     String abcd = CustomKeywords.'nasdaqKeyword.AccessToRestoftheTable.navigatetogettablevaluerest'(Integer.toString(i), Integer.toString(j));

            arrlist.add(abcd);

    }
    System.out.println(arrlist);
    }

1 个答案:

答案 0 :(得分:0)

这是您需要的吗?

(Get-Content 'C:\Shibi\Basic.json') -replace 'false', 'true' | Set-Content 'C:\Shibi\Basic.json'