KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > beans > beancontext > BeanContextSupport.BCSIterator

java.beans.beancontext
Class BeanContextSupport.BCSIterator

java.lang.Object
  extended by java.beans.beancontext.BeanContextSupport.BCSIterator
All Implemented Interfaces:
Iterator
Enclosing class:
BeanContextSupport
See Also:
Source Code

public boolean hasNext()
See Also:
Iterator
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1686]Iterator remove()
By agentokim { at } hotmail { dot } com on 2005/12/08 21:00:36  Rate
  Iterator  < Boat >  its = ship.iterator (  ) ; 
     while ( its.hasNext (  )  )  
      {  
       Boat b = its.next (  ) ; 
       if  (  b instanceof SailBoat )  
        {  
         its.remove (  ) ; 
        }  
        
       System.out.println ( b ) ; 
      }  
  
  
 Boat have array list. I want to remove list with red color. Where do i put "remove (  ) ? in this code?


public Object next()
See Also:
Iterator, Iterator.hasNext()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public void remove()
See Also:
Iterator
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags