Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
208 views
by The go-to Tester (262 points)
retagged by
I am not having java 8 + versions, please suggest me some other options

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)

In that case, you can use below code

 

public List<Long> arrayStringtoListOfArray(String[] values){

List<Long> lValues = new ArrayList<Long>();

for(int i=0; i<values.length;i++){

lValues.add(Long.parseLong(values[i]));

}

return lValues;

}

 

Hope that helps!

...