public Object pop() {
		if (currentSize > 0) {
			Object elem = array[currentSize-1];
			array[currentSize-1] = null;
			checkEnoughCapacity(0);
			currentSize--;
			return elem;
		}
		return null;
	}