SLS
About SLS
Subato Home
100%
0
Course
Title
Description
Topics
Help
Hints
Give a Feedback
Länge einer Listenstruktur
Topics
Schreiben Sie für die Listenstruktur
Li
eine Längenfunktion, die die Anzahl der Elemente berechnet.
class Li<A>{ final A head; final Li<A> tail; Li(A h,Li<A> t){head=h; tail=t;} Li(){this(null,null);} boolean isEmpty(){return head==null&tail==null;} int laenge(){ return 0; } }
Submit
Subato