public class InventoryProgramPart1{
public static void main (String args []){
DVD dvd;
dvd = new DVD(1, "Just Go With It", 8, 2.04);
System.out.println(dvd);
dvd = new DVD (2, "Gnomeo and Juliet", 2, 1.34);
system.out.println(dvd);
dvd = new DVD (3, "Black Swan", 6, 2.20);
system.out.println(dvd);
dvd = new DVD (4, "Zookeeper", 4, 1.49);
system.out.println(dvd);
System.out.println("Products Title is " + dvd.getDvdTitle());
System.out.println("Number of units in stock is" + dvd.getDvdStock());
System.out.println("Price of each DVD is" + dvd.getDvdPrice());
System.out.println("Item number is" + dvd.getDvdItem());
System.out.println("Value of the inventory is" + dvd.value());
}// end main
}// end class InventoryprogramPart1
class DVD{
private String dvdTitle;
private double dvdStock;
private double dvdPrice;
private double dvdItem;
public DVD(String title, double stock, double price, double item){
dvdTitle = title;
dvdStock = stock;
dvdPrice = price;
dvdItem = item;
}// end constuctor
// set DVD name
public void set dvdTitle(String title){
}//end method setDvdTitle
//return DVD Title
public String getdvdTitle(){
return dvdTitle;
}//end method getDvdTitle
//set DVD Stock
public void setdvdStock(double stock){
dvdStock = stock;
}//end method setDvdStock
//return DvdStock
public double getdvdStock(){
return dvdStock;
}//end method get DvdStock
public void setdvdPrice(double price){
dvdPrice = price;
}//end method setDvdPrice
//return dvdPrice
public double getdvdPrice() {
return dvdPrice;
}//end method getDvdPrice
public void setdvdItem(double item){
dvdItem = item;
}//end method setDvdItem
//return dvdItem
public double getdvdItem(){
returndvdItem;
}//end method getDvdItem
//calculate the inventory value
public double value(){
return dvdPrice * dvdStock;
}//end method value
}//end class DVD
Right now I'm recieving two errors that I can't just simply figure out. First error is on line 54 I get an expected error '(' I'm not to sure how to go about solving this and another error is on line 87 I'm getting the error "Not a statement". Can anyone help me shed some light on how to figure this out?