Click to See Complete Forum and Search --> : Help: Creating Stack in Java


typeR323
11-06-2005, 08:37 PM
Is anyone able to tell me the basic idea about creating stack in Java and how to write the code? Thank You Very Much.

Waylander
11-06-2005, 10:32 PM
Im not really sure why you would want to do this?

The java api has its own internal memory allocation and de-allocation management...
If you know how the system works you can write very good optimized code.

Im not even sure that you could do it even if you wanted too.. if you desire such low control with in you application I would recommend using something like c++.

Waylander.

Oak
11-07-2005, 09:22 AM
http://javaalmanac.com/egs/java.util/coll_Stack.html

Not really much code considering you can make use of pre-existing classes.

BigDog
11-07-2005, 09:27 AM
This sounds like a homework assignment for a student to write a psuedo-stack in order to understand how it works.