void (T object) { int currentSize = size(); if (currentSize == myArray.length) { myArray = normalize(Math.max(currentSize * 3/2, 10)); myFirst = 0; myLast = currentSize; isWrapped = false; } myArray[myLast] = object; myLast++; if (myLast == myArray.length) { isWrapped = !isWrapped; myLast = 0; } }