Re: parallel for



gaurav v bagga wrote:

if i have two arrays of same size and want to evaluate both of them in
parallel using

for(String s :<String array>){
}

how to do this

You can't. You'll have to use the "normal" looping syntax.

for (int i = 0; i < array1.length; i++)
{
String s1 = array1[i];
String s2 = array2[i].
....
}

-- chris


.



Relevant Pages

  • Re: parallel for
    ... gaurav v bagga wrote: ... if i have two arrays of same size and want to evaluate both of them in ... for(String s:){ ...
    (comp.lang.java.programmer)
  • parallel for
    ... if i have two arrays of same size and want to evaluate both of them in ... for(String s:){ ...
    (comp.lang.java.programmer)