You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class MyData {
public int value1;
public int value2;
public int value3;
public List<Object> values = new ArrayList<>();
public Object[] collection1;
}
and PrintMessage class is
public class PrintMessage implements StepBody {
public String message;
public int index;
@Override
public ExecutionResult run(StepExecutionContext context) {
System.out.println(message);
index++;
return ExecutionResult.next();
}
}
Error:
java.lang.RuntimeException: javax.script.ScriptException: TypeError: Object[0] is not a function in <eval> at line number 1
when I use primitive array instade of ArrayList then It works. But I want to use ArrayList. Can I use?
One more thing, Can I get each value of the array without declare extra index in PrintMessage class.
The text was updated successfully, but these errors were encountered:
Hello, I want to show each data in ArrayList with foreach loop with using json file. This is my json file
MyData class is
and PrintMessage class is
Error:
when I use primitive array instade of ArrayList then It works. But I want to use ArrayList. Can I use?
One more thing, Can I get each value of the array without declare extra index in PrintMessage class.
The text was updated successfully, but these errors were encountered: