Results 1 to 4 of 4
  1. #1
    MatasK is offline Member
    Join Date
    Nov 2011
    Location
    Vilnius
    Posts
    2
    Rep Power
    0

    Exclamation 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
    Vilnius
    Last edited by MatasK; 11-24-2011 at 05:15 PM.

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,785
    Blog Entries
    7
    Rep Power
    21

    Default Re: University task, with stack and deck

    Do you mean a deque instead of a 'deck'?

    kind regards

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    MatasK is offline Member
    Join Date
    Nov 2011
    Location
    Vilnius
    Posts
    2
    Rep Power
    0

    Default Re: University task, with stack and deck

    Yes, sorry for mistake

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,785
    Blog Entries
    7
    Rep Power
    21

    Default 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,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. CS106A Stanford University
    By Learning Java in forum New To Java
    Replies: 116
    Last Post: 07-09-2011, 05:43 PM
  2. BigInteger Rational (CS106A-Stanford university)
    By ccie007 in forum New To Java
    Replies: 16
    Last Post: 10-01-2010, 08:16 PM
  3. Help for University Project
    By ja107 in forum Networking
    Replies: 3
    Last Post: 03-18-2010, 11:22 AM
  4. Help for University Project
    By ja107 in forum Networking
    Replies: 1
    Last Post: 03-04-2010, 01:22 AM
  5. University Of Nottingham Website Survey
    By MuslimCoder in forum Reviews / Advertising
    Replies: 1
    Last Post: 03-02-2009, 11:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •