Search:

Type: Posts; User: RoshanDiMatteo

Search: Search took 0.30 seconds.

  1. Thread: Stacks

    by RoshanDiMatteo
    Replies
    3
    Views
    220

    Re: Stacks

    In fact
    1.I have created a Book class which contains the above book attributes and accessor methods.
    2.Then, I created the BookApp class where I input the values for attributes and create an object...
  2. Thread: Stacks

    by RoshanDiMatteo
    Replies
    3
    Views
    220

    Stacks

    in this code snippet
    public void push(Book book) {

    if(size() == capacity)
    doubleStackArray();
    stack[++top] = book;//***

    if i want to push a a Book object, I am stuck at //***
  3. Thread: Stacks

    by RoshanDiMatteo
    Replies
    1
    Views
    235

    Stacks

    sorry about last post, i won't repeat next time, but a simple question, is it possible to push objects on stacks? and what do i need to modify in my push method in Stack class?
  4. Replies
    5
    Views
    251

    Re: Stacks problem-help

    sorry about last post, i won't repeat next time, but a simple question, is it possible to push objects on stacks? and what do i need to modify in my push method in Stack class?
  5. Replies
    5
    Views
    251

    Re: Stacks problem-help

    -------------------------------------------------------------------------------------------------------------------
    I am a beginner in Java
    In fact
    1.I have created a Book class which contains...
  6. Replies
    5
    Views
    251

    Stacks problem-help

    Write a program that keeps the following information on books:
    Book title
    Barcode
    Author Name
    Price
    Edition
    Books from ten different authors need to be piled in such a way that the...
Results 1 to 6 of 6