Search:

Type: Posts; User: Mr.777

Search: Search took 0.18 seconds.

  1. Thread: Infix to Prefix

    by Mr.777
    Replies
    8
    Views
    5,720

    Re: Infix to Prefix

    Well copeg, i was not talking about java.util.Stack, i know it doesn't implement isFUll(), infact if i ever implement a stack, i always use isFull() method.
    Anyways, thanks Copeg and Junky
  2. Thread: Infix to Prefix

    by Mr.777
    Replies
    8
    Views
    5,720

    Re: Infix to Prefix

    Why stack class can not have a isFull() method? Kindly give me some reasons. As far as i know, if you are playing with a fixed size stack, you must check it somehow, whether stack is full or not, so...
  3. Thread: Infix to Prefix

    by Mr.777
    Replies
    8
    Views
    5,720

    Re: Infix to Prefix

    What if OP had not implemented the circular stack?
    And what if his stack is, let's say of size 10 and there are already 10 values in it????
  4. Thread: Infix to Prefix

    by Mr.777
    Replies
    8
    Views
    5,720

    Re: Infix to Prefix

    Yeah and the problem is, your stack is empty and you want to pop it.
    You must implement, isEmpty() and isFull() for stack class.
    And call isFull() before pushing data and isEmpty() before poping.
    ...
Results 1 to 4 of 4