Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/394.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何一次获取数组列表_Java_Selenium_Katalon Studio - Fatal编程技术网

Java 如何一次获取数组列表

Java 如何一次获取数组列表,java,selenium,katalon-studio,Java,Selenium,Katalon Studio,在我的控制台中,可以看到下面由循环生成的数组列表集(不是立即生成的) 我如何在控制台/或日志中一次看到这些值,重要的是,我需要在表标题下获取这些值 表格标题为“日期关闭/上一卷打开高-低”” 代码: ArrayList<Integer> arrlist = new ArrayList<Integer>(); for(int i = 1 ; i<=18 ; i++){ String abc = CustomKeywords.'nasdaqK

在我的控制台中,可以看到下面由循环生成的数组列表集(不是立即生成的)

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

表格标题为“
日期关闭/上一卷打开高-低”

代码:

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);
    }
ArrayList arrlist=new ArrayList();

对于(inti=1;i这就是你需要的吗

System.out.print("DATE   CLOSE/LAST  VOLUME  OPEN    HIGH    LOW");
for (int index = 0 ; index < arrlist.size(); index++){
     System.out.println(arrlist.get(index));
}
系统输出打印(“日期关闭/最后一卷打开高-低”);
对于(int index=0;index
我相信我的问题很清楚,我需要在1处获取这些列表数组值,并在某些表头值下显示它们。我必须同意@TeaNG。我完全不明白你在问什么。在运行测试后,是Katalon Studio的控制台输出吗?你从网页中提取了这些信息吗?@GregBurghardt是的,请注意,上面的控制台视图不是立即获取的,我需要立即获取。
System.out.print("DATE   CLOSE/LAST  VOLUME  OPEN    HIGH    LOW");
for (int index = 0 ; index < arrlist.size(); index++){
     System.out.println(arrlist.get(index));
}