668
правок
Изменения
→Пример
<tex>post: size == size' - 1<tex> and </tex> <tex>result == elements[size]</tex>
<tex>Object </tex> <tex> pop() </tex>
<tex> peek:</tex>
<tex>post result == elements[size - 1]</tex>
<tex>Object </tex> <tex> peek() </tex>
<tex> size:</tex>
<tex>post: result == size </tex>
<tex>int </tex><tex> size()</tex>
<tex>isEmpty:</tex>