Article View: borland.public.jbuilder.java.language
Article #17209Re: Linked List and Stacks
From: William Yu
Date: Thu, 03 Dec 1998 00:00
Date: Thu, 03 Dec 1998 00:00
20 lines
1425 bytes
1425 bytes
Shahid Juma wrote: > Hello, > > Does anybody know how the Linked List and stacks work? > > For example: what does push(), peek(), search(), empty() do. And where > would I find the exact code for it. (I know it is included in the API, > but where could I find the code for it) If you look at the API documentation, you will notice that Stack extends from Vector. Which means the code for Stack is *trivial* -- reimplementing such a class using a Vector (or similar) should take 2 minutes tops to code. Here's the real story. Linked Lists, Stacks, Queues and such are the foundations of almost every programming languages. It is worth your time to figure it out yourself because if you can't comprehend simple objects like stacks, you certainly won't know how to write more complicated data structures that are needed in the real world.
Technical Details
Message-ID:
<366659AB.2E3B5DAF@Bigfoot.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<366495C2.8702338A@interlog.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,d2497ab26f333b9e X-Google-Attributes: gidf74b3,public From: William Yu <William_Yu@Bigfoot.com> Subject: Re: Linked List and Stacks Date: 1998/12/03 Message-ID: <366659AB.2E3B5DAF@Bigfoot.com> X-Deja-AN: 418177442 Content-Transfer-Encoding: 7bit References: <366495C2.8702338A@interlog.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language