home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java Certification Exam Guide
/
McGrawwHill-JavaCertificationExamGuide.iso
/
pc
/
Web Links and Code
/
code
/
chap3
/
Queue.java
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1997-04-19
|
402 b
|
25 lines
class Queue extends Vector {
Queue() {
super();
}
Queue(int capacity) {
super(capacity);
}
Queue(int capacity, int increment) {
super(capacity, increment);
}
void add(Object obj) {
addElement(obj);
}
Object get() {
Object obj = lastElement();
boolean success = removeElement(obj);
return obj;
}
}