Java-API--Dokumentation

Class Loesung23

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList
                  extended by Loesung23
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, Queue

 class Loesung23
extends LinkedList

Loesungsvorschlag fuer Aufgabe 2-3: Stapel.

Ein Stapel, implementiert durch Vererbung mit einer LinkedList.

Version:
$Revision: 1.2 $
Author:
Arne Johannessen
See Also:
Aufgabenblatt 2

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Loesung23()
           
 
Method Summary
(package private)  String pop()
          Nimmt den obersten String vom Stapel herunter.
(package private)  void push(String value)
          Legt einen String oben auf den Stapel drauf.
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

Loesung23

Loesung23()
Method Detail

push

void push(String value)
Legt einen String oben auf den Stapel drauf.

Parameters:
value - der aufzulegende String

pop

String pop()
Nimmt den obersten String vom Stapel herunter.

Returns:
der abgenommene String

Java-API--Dokumentation

Gehe zurueck zur Tutoriums-Homepage