public static void main(String[] args) {
		List<String> list = new ArrayList<String>(
				Arrays.asList("cat", "dog", "horse")
		);
		System.out.println(list);
		
		ListIterator<String> it = list.listIterator();
		
		while (it.hasNext())
			System.out.println(it.next());
		
		System.out.println();
		
		while (it.hasPrevious())
			System.out.println(it.previous());
		
		it = list.listIterator(1);
		while (it.hasNext()) {
			it.next();
			it.set("cat");
		}
		System.out.println(list);
	}