Multiple lists used in for()
I'd like to be able to "scroll through" three different lists (all of the same length) and do things to the vars:
List<String> urls =new ArrayList<String>();
List<String> searchStrings =new ArrayList<String>();
List<String> thresholds =new ArrayList<String>();
urls = xmlp.get("url");
searchStrings = xmlp.get("searchString");
thresholds = xmlp.get("threshold");
for (String url : urls){
System.out.println(url);
}
Is there a way to do this in Java though like the Python for... zip(vars)
example:
for url, searchString, threshold in zip(urls,searchStrings,thresholds):
dothis with url
dothis with searchString
dothis with threshold
Is there an equivilent for Java?
Thanks

