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

1 like 0 dislike
256 views
by The go-to Tester (262 points)
retagged by
Having list of strings and want to convert into list of long. Please provide me some example.

1 Answer

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

At this point I can think of below as a solution for you.

List<Long> longList = new ArrayList<Long>();
longList.add(1L);
longList.add(2L);
 
List<String> stringList = new ArrayList<String>();
 
for(Long _long : longList)
stringList.add(String.valueOf(_long));
 
Hope that helps.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...