int search(Object o)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Returns the 1-based position where an element is on this stack. The distance from the top of the stack, if the element o occurs as an item in this stack. The element on the top of the stack is considered to be at the distance 1. This method returns -1 if the stack doesn't contain the specified element.
Example
Stack stack = new Stack();
stack.push("s");
stack.push("t");
stack.push("a");
stack.push("c");
stack.push("k");
Logger.log("position from the 'a' element: " + stack.search("a"));
The example above returns the position from the specified element within the stack.