Search:

Type: Posts; User: aw20

Search: Search took 0.09 seconds.

  1. Re: How to write addTextbook(Textbook) in a method? how to write a tester class?

    i know but my assignment say addTextbok(String id)
  2. Re: How to write addTextbook(Textbook) in a method? how to write a tester class?

    -jGRASP exec: javac -g Bookstore.java

    Bookstore.java:17: error: variable apparel is already defined in class Bookstore
    private Apparel apparel;
    ^
    Bookstore.java:64: error: no...
  3. Re: How to write addTextbook(Textbook) in a method? how to write a tester class?

    import java.util.List;
    import java.util.ArrayList;

    public class Bookstore
    {
    //Instance field
    /**
    *@param name
    *@param textbooks
    *@param apparel
  4. Re: How to write addTextbook(Textbook) in a method? how to write a tester class?

    ----jGRASP exec: javac -g Bookstore.java

    Bookstore.java:62: error: <identifier> expected
    public void addTextbook(textbook)
    ^
    1 error

    ----jGRASP wedge2:...
  5. Re: How to write addTextbook(Textbook) in a method? how to write a tester class?

    public void addTextboox(textbook)
    {
    textbooks.add(textbook);
    }
  6. Re: How to write addTextbook(Textbook) in a method? how to write a tester class?

    i know how but i dont know how to write myself
  7. Re: How to write addTextbook(Textbook) in a method? how to write a tester class?

    yes i do. how to write add method and fuction for that? My assignment due tonight
  8. How to write addTextbook(Textbook) in a method? how to write a tester class?

    addTextbook(Textbook) adds a new Textbook to the inventory of the bookstore.
    buyTextbook(String id) removes a Textbook object from the list of textbooks of the Bookstore. If the id does not match...
Results 1 to 8 of 8