NNTP-Posting-Date: Mon, 25 Feb 2013 12:25:57 -0600 Date: Mon, 25 Feb 2013 18:25:55 +0000 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: BlueJ don't know what i did wrong References: <638ed624-9eba-44eb-bcbf-68466e5bb5f1@googlegroups.com> <42d76fca-d365-4030-ae8c-07a806eab87c@googlegroups.com> <1wtai7dd80h80$.6rbtwoyou3gh.dlg@40tude.net> <5q6dnc3pF_HJzLfMnZ2dnUVZ7s-dnZ2d@bt.com> <77afaabf-ec0f-46d6-b3ea-d8f186dbf7e4@googlegroups.com> <3979a129-ea49-441d-b282-65d3d180a4b1@googlegroups.com> In-Reply-To: <3979a129-ea49-441d-b282-65d3d180a4b1@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 26 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-wRV8N6AC21d9afGirZ2sIQU0hvMxIOLA4zsiX1NzSf5llfB0z3yTEXbxlG7pTH2lSqdeMYLg/3sVk+u!hIVWPOmLsw3FuHSNSFkTRiiyGNFG+mS8pBHCShhA73onbz56D2F01dPCznyQK9RCc3xACgiN0ZU= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2487 Path: csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail Xref: csiph.com comp.lang.java.programmer:22510 On 25/02/13 17:54, marvin.radke@htp-tel.de wrote: [snip] > > well i read the few things on the link and it seems like it could help, but through we only had very basic things in school, i don't know how to populate this stack... do i just have to insert vectors into it? You need to understand how a Stack works To put an item on the Stack you use the push(item) method To remove the top item from the stack you use the pop() method once you've 'popped' an item it is no longer on the stack, you don't need to 'count' anything, when it's popped it's gone. Read this http://en.wikipedia.org/wiki/Stack_%28abstract_data_type%29 Let us know how you get on. lipska -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun