#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    8
    Rep Power
    0

    Creating an RPN stack using java


    I'm trying to create an RPN stack for a calculator using java. I'm not allowed to use java.util.Stack or any stack implementation using arrays or vectors.

    Any ideas where I should start would be greatly appreciated.
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,918
    Rep Power
    1045
    Hi,

    use a linked list for the stack items and have each one point to its predecessor.

IMN logo majestic logo threadwatch logo seochat tools logo