public Object pop(){
		position--;
		Object result = tarray[position];
		
		if(position < (tarray.length/4)){
			System.out.println("array size decreasing");
			T[] temparray = (T[]) new Object[(tarray.length/2)]; 
			for(int i=0; i<position; i++){
				temparray[i] = tarray[i];
			}
			tarray = temparray;
		}
		return result;
	}