that might be the best, you'll have to do that anyway, since you say there are three String objects in every element in the ArrayList
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
It looks like you're having trouble with your iterator. To access the next object you need
while( iterator.hasNext() )
{
YourObjectType nextObj = (YourObjectType)iterator.next();
if( nextObj.string3.equals( stringA ) )
{
}
}
Where "YourObjectType" is of course whatever object you're using that contained the strings.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847