Java in a Nutshell, 5th Edition [Electronic resources] نسخه متنی

This is a Digital Library

With over 100,000 free electronic resource in Persian, Arabic and English

Java in a Nutshell, 5th Edition [Electronic resources] - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید


Stack<E>java.util

Java 1.0cloneable serializable collection

This class implements
a last-in-first-out (LIFO) stack of objects. push(
) puts an object on the top of the stack. pop(
) removes and returns the top object from the stack.
peek( ) returns the top object without removing
it. In Java 1.2, you can instead use a LinkedList
as a stack.


Figure 16-58. java.util.Stack<E>

public class

Stack<E> extends Vector<E> {
// Public Constructors
public

Stack ( );
// Public Instance Methods
public boolean

empty ( );
public E

peek ( ); synchronized
public E

pop ( ); synchronized
public E

push (E

item );
public int

search (Object

o ); synchronized
}



    / 1191