stack = new String[10];
return size == 0;
return stack[--size];
if (size >= stack.length) { String[] tmp = new String[2*stack.length]; System.arraycopy(stack, 0, tmp, 0, size); stack = tmp; } stack[size++] = obj;