@Override
	public E get(int arg0) {
		E temp = null;
		if(arg0 < 0 || arg0 >= size){
			throw new IndexOutOfBoundsException();
		}
		else if(arg0 == 0){
			temp = head.data;
		}
		else if(arg0 == size){
			temp = tail.data;
		}
		else{
			temp = getNode(arg0).data;
		}
		return temp;
	}