NNTP-Posting-Date: Mon, 25 Feb 2013 07:35:10 -0600 Date: Mon, 25 Feb 2013 13:35:06 +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> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 37 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-fsr+TJTZw+ya6GFO+FZc2WDIZ5ws4njSQBlyEt9H07Onj2a8nbvOqEdwymASrL7AVLkKmoufPytHCeg!bqF7shUj+nX2f8R5OpIR3g4/w6g98PoX5yaVVYukXi5Vs8Te87nvjyi/GvhAvg/Ksu1ruwwXjTg= 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: 2788 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:22504 On 25/02/13 12:50, John B. Matthews wrote: > In article, > lipska the kat<"nospam at neversurrender dot co dot uk"> wrote: > >> >> >> >> >> Stack s = new Stack() >> ... >> > > Please don't recommend raw types for new code, and don't recommend an > API that says explicitly, "A more complete and consistent set of LIFO > stack operations is provided by the Deque interface and its > implementations, which should be used in preference to this class." Did you miss the bit? Any text book on data structures will detail a Stack How many will discuss a Deque The documentation for Deque states "A linear collection that supports element insertion and removal at both ends" Not exactly stack like is it? It's the idea, not the actual implementation that is important. If the OP can read he can figure the rest out for himself lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun