public boolean add(T t) {
		boolean result = false;
		if(array.length <= index)
		{
			T[] newArray = (T[])Array.newInstance(type, array.length * 2);
			for(int i = 0; i < array.length; i++){
				newArray[i] = array[i];
			}
			array = newArray;
		}
		array[index] = t;
		index++;
		result = true;
		return result;
	}