Hey everyone. Before I post my error and my code I just wanted to explain my situation and say thanks for the help. I am in college and this is a project assignment. I don't want anyone to help me for a second, I just need help in understanding what's going on. We have recently moved into "Classes and Objects". If you need anymore information after I post my code, I will gladly supply it. Thanks for helping!
/************************************************************************************** * ------------------------------------------------------------------------------------ * File name: BookOrder.java * Project name: CSCI 1250 Project 4 * ------------------------------------------------------------------------------------ * Author Name: Austin Stanley * Author E-mail: * Course-Section: CSCI-1250-001 * Creation Date: 11/08/2012 * Date of Last Modification: 11/08/2012 * ------------------------------------------------------------------------------------ */ import java.util.Scanner; //Allow the user input from keyboard import java.text.DecimalFormat; //Allowing us to limit the Decimal Place /************************************************************************************** * Class Name: BookOrder <br> * Class Purpose: The class for our driver program <br> * * <hr> * Date created: 11/08/2102 <br> * Date last modified: 11/08/2012 * @author Austin Stanley */ public class BookOrder //The beginning of the BookOrder class { //**********************CLASS ATTRIBUTES**************************** private String author; //Establishing the author variable private String title; //Establishing the title variable private int quantity; //Establishing the quantity variable private double costPerBook; //Establising the costPerBook variable private String orderDate; // Establishing the orderDate variable private double weight; //Establishing the weight variable private char shipType; //Establishing the shipType variable //**********************CLASS METHODS******************************* //-----------------------CONSTRUCTORS------------------------------- public BookOrder() { setAuthor(" "); setTitle(" "); setQuantity(0); setCostPerBook(0.0); setOrderDate(" "); setWeight(0.0); setShipType(' '); }//end BookOrder public BookOrder(String authorName, String titleName) { setAuthor(authorName); setTitle(titleName); }//end BookOrder(String authorName, String titleName) publc BookOrder(String authorName, String titleName, int quantityAmmount, double costPerBookAmmount, String orderDateName, double weightAmmount, char shipTypeLetter) { setAuthor(authorName); setTitle(titleName); setQuantity(quantityAmmount); setCostPerBook(costPerBookAmmount); setOrderDate(orderDateName); setWeight(weightAmmount); setShipType(shipTypeLetter); }//end publc BookOrder(String authorName, String titleName, int quantityAmmount, double costPerBookAmmount, String orderDateName, double weightAmmount, char shipTypeLetter) //--------------------------SETTERS--------------------------------- public void setAuthor(String authorName) { authorName = authorName; }//end setAuthor public void setTitle(String titleName) { titleName = titleName; }//end setTitle public void setQuantity(int quantityAmmount) { quantityAmmount = quantityAmmount; }//end setQuantity public void setCostPerBook(double costPerBookAmmount) { costPerBookAmmount = costPerBookAmmount; }//end setCostPerBook public void setOrderDate(String orderDateName) { orderDateName = orderDateName; }//end setOrderDate public void setWeight(double weightAmmount) { weightAmmount = weightAmmount; }//end setWeight public void setShipType(char shipTypeLetter) { shipTypeLetter = shipTypeLetter; }//end setShipType //--------------------------GETTERS--------------------------------- public String getAuthor() { return authorName; }//end getAuthor public String getTitle() { return titleName; }//end getTitle public int getQuantity() { return quantityAmmount; }//end getQuantity public double getCostPerBook() { return costPerBookAmmount; }//end getCostPerBook public String getOrderDate() { return orderDateName; }//end getOrderDate public double getWeight() { return weightAmmount; }//end getWeight public char getShipType() { return shipTypeLetter; }//end getShipType //---------------------OTHER CLASS METHODS-------------------------- }//end BookOrder