Results 1 to 4 of 4
- 11-24-2011, 03:47 PM #1
Member
- Join Date
- Nov 2011
- Location
- Vilnius
- Posts
- 2
- Rep Power
- 0
University task, with stack and deck
Hello, Java fans
I've got a task from my university lecture, to write a program with Java language. Unfortunately i started to learn this language not very long time ago. So the task is to 'put to stack and deque array N members elements'. Maybe someone could help me to deal with this? I could not find any tutorials about this.
Very grateful, Matas
VilniusLast edited by MatasK; 11-24-2011 at 04:15 PM.
- 11-24-2011, 03:56 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: University task, with stack and deck
Do you mean a deque instead of a 'deck'?
kind regards
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 11-24-2011, 04:16 PM #3
Member
- Join Date
- Nov 2011
- Location
- Vilnius
- Posts
- 2
- Rep Power
- 0
Re: University task, with stack and deck
Yes, sorry for mistake
- 11-24-2011, 04:41 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: University task, with stack and deck
Well, a double linked list (a LinkedList) can serve as a deque as well as a stack; it can push and pop elements to/from the front as well as to/from the back. The API documentation explains it all.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
CS106A Stanford University
By Learning Java in forum New To JavaReplies: 116Last Post: 07-09-2011, 04:43 PM -
BigInteger Rational (CS106A-Stanford university)
By ccie007 in forum New To JavaReplies: 16Last Post: 10-01-2010, 07:16 PM -
Help for University Project
By ja107 in forum NetworkingReplies: 3Last Post: 03-18-2010, 10:22 AM -
Help for University Project
By ja107 in forum NetworkingReplies: 1Last Post: 03-04-2010, 12:22 AM -
University Of Nottingham – Website Survey
By MuslimCoder in forum Reviews / AdvertisingReplies: 1Last Post: 03-02-2009, 10:42 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks