Code example for LinkedList

Methods: add, remove, size

0
		updatePositions(); 
	} 
	 
	public void updatePositions() 
	{ 
		for(int i = 0; i < tiles.size(); i++)
			tiles.get(i).move(i*65+20, dragBorder.bottom - 75);
	} 
	 
	public void remove(DraggableBox d)
	{ 
		tiles.remove(d);
		DraggableBox tmp = new DraggableBox(context, 65*8+20, 60);
		tiles.add(tmp);
		ref.add(tmp);
		updatePositions(); 
	} 
	 
	public boolean contains(DraggableBox d)
	{ 
		return tiles.contains(d);