Code example for ListIterator

Methods: addnext

0
 
	@Test 
	public void iteratorInsertTest() { 
		List<Character> list = new CharacterList("bc");
		ListIterator<Character> itr = list.listIterator();
		itr.next();
		itr.add('a');
		Assert.assertEquals("[a, b, c]", list.toString());
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE