public void removeBlock() { height = height - 1; }
Remark. There is one less block. There is no need to modify what is in the content array. If there are three blocks in the stack, then only content[0], content[1] and content[2] are meaningful. All other values are irrelevant, so leave them alone.