Sep. 13th, 2007

Stacks

Sep. 13th, 2007 04:48 pm
purplecat: Hand Drawn picture of a Toy Cat (agents)
I'm in a horrendous muddle about stacks. Java lets you do all sorts of cunning and unforgivable things with stacks (like take things off the bottom of them, or shove things onto the bottom of them). As a result my program appears to be full of stacks and stacks of stacks none of which have tops or bottoms where I think they are.

Then I try to print them out to see what they look like and I'm not even printing them in the right order so I'm still confused about what is at the top of the stack and what is at the bottom of the stack.

SENSIBLE languages don't let you do anything bad with stacks as a result of which you never have to worry about which is the bottom and which is the top. This whole stack confusion thing is coming as something of a shock.

Profile

purplecat: Hand Drawn picture of a Toy Cat (Default)
purplecat

June 2025

S M T W T F S
1234567
8 9 1011 12 13 14
15 16 17 18 19 20 21
22 23 24 25262728
2930     

Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags