Code example for LinkedList

Methods: add, iterator

0
 
	} 
 
	public void linkedListIteratorTest() { 
		String tainted = TelephonyManager.getDeviceId();
		List<String> list = new LinkedList<String>();
		list.add("neutral");
		list.add(tainted);
 
		Iterator<String> it = list.iterator();
		it.next();
		String taintedElement2 = it.next();
 
		ConnectionManager cm = new ConnectionManager();
		cm.publish(taintedElement2);
	} 
 
	public void linkedListSubListTest() { 
		String tainted = TelephonyManager.getDeviceId();
		List<String> list = new LinkedList<String>();
		list.add("neutral");