Java Reference
In-Depth Information
If (tos==9)
System.out.println ('it's full”);
Else
Stk [++tos] = item;
}
Int pop ()
{if (tos<0) {
System.out.println (“stack underflow”);
Return 0;
} else
Return stk[tos--];
}
}
Search WWH ::




Custom Search