ArrayList testdata_1 = new ArrayList<>();
for (int i = 0; i < testdata_1.size(); i++) {
System.out.println(testdata_1.get(i));
}
My output is
[]
[[Username,Password], [user_1, Test@100]]
I want to delete the first blank value ,iterate the arraylist, identify the key as username,fetch the value "user_1" and assign to a local string variable "username"
Datatable | Username | user_1 | | Password | Test@100 |
List> data = new ArrayList<>();
if(step.getRows()!=null)
step.getRows().forEach(row -> data.add(row.getCells()));
> data = new ArrayList<>(); if(step.getRows()!=null) step.getRows().forEach(row -> data.add(row.getCells())); Is there a better way to read the data table and store it in the format i require
– novice Jun 09 '18 at 23:14