i know but my assignment say addTextbok(String id)
Type: Posts; User: aw20
i know but my assignment say addTextbok(String id)
-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...
import java.util.List;
import java.util.ArrayList;
public class Bookstore
{
//Instance field
/**
*@param name
*@param textbooks
*@param apparel
----jGRASP exec: javac -g Bookstore.java
Bookstore.java:62: error: <identifier> expected
public void addTextbook(textbook)
^
1 error
----jGRASP wedge2:...
public void addTextboox(textbook)
{
textbooks.add(textbook);
}
i know how but i dont know how to write myself
yes i do. how to write add method and fuction for that? My assignment due tonight
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...