You need to sign in to do that
Don't have an account?
mobile vistex
how to compare two values in for each loop
HI i have written a loop like
for(String x: <list>){
k=x[0];
l=x[1];
}
my question is how to compare values k..
for(String x: <list>){
k=x[0];
l=x[1];
}
my question is how to compare values k..
What is the purpose of the comparison - are you trying to order the collection in some way?
Use string indexOf method Let us know if it helps you.