Code example for ListIterator

Methods: nextprevious

0
	public void testListContent() throws Exception { 
		List list = (List) createCollection();
 
		// test the list iterator 
		ListIterator iter = list.listIterator();
		Object b = iter.next();
 
		assertSame(b, iter.previous());
	} 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE