Need Help!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • teenIce
    New Member
    • Aug 2007
    • 36

    #1

    Need Help!!!

    Hi everyone,

    I need help to understand this code that I got from open source. I am new at Java.. :(

    Code:
    for(Iterator i$ = ruleMatches.iterator(); i$.hasNext();)
          {
    	  	
              RuleMatch match = (RuleMatch)i$.next();
    
    }
  • madhoriya22
    Contributor
    • Jul 2007
    • 251

    #2
    Originally posted by teenIce
    Hi everyone,

    I need help to understand this code that I got from open source. I am new at Java.. :(

    Code:
     
    for(Iterator i$ = ruleMatches.iterator(); i$.hasNext();)
    {
     
    RuleMatch match = (RuleMatch)i$.next();
     
    }
    Hi,
    It is very simple...... U r iterating through ruleMatches(it may be a collection). From that ruleMatches u r getting object of RuleMatch class.

    Comment

    • teenIce
      New Member
      • Aug 2007
      • 36

      #3
      Originally posted by madhoriya22
      Hi,
      It is very simple...... U r iterating through ruleMatches(it may be a collection). From that ruleMatches u r getting object of RuleMatch class.
      Oh...Thanks man..Now I just need to study it again...

      Comment

      Working...