You can run a recursive method that will run itself a certain number of times, and then perform the specified action. Sounds pretty flaky though :(
Sort of:
public void eatStackThenExecute(int depth, Runnable action)
{
if (depth == 0)
{
action();
}
else
{
eatStackThenExecute(depth - 1, action);
}
}
EDIT: , JVM , , - , ...
Ick 'n stuff: (