/** * Push a value onto the stack. * @param x the value * @return the value */ public synchronized Integer push(Integer x) { if (++index == data.length) { grow(); } data[index] = x; return x; }
/** * Push a value onto the stack. * @param x the value * @return the value */ public synchronized Integer push(Integer x) { if (++index == data.length) { grow(); } data[index] = x; return x; }