User Profile

Collapse

Profile Sidebar

Collapse
jcato77
jcato77
Last Activity: May 28 '14, 04:09 AM
Joined: Mar 10 '08
Location: Dublin, Ca
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jcato77
    replied to Inventory Program - Won't complie
    in Java
    So I finally got it working !!!

    Code:
    class DVD extends Product
    {
    	private String itemDirector;
    
    	public DVD(int itemNumber, String itemName, String itemDirector,
    			long invQuantity, double itemPrice) {
    		super(itemNumber, itemName, invQuantity, itemPrice);
    		this.itemDirector = itemDirector;
    	}
    
    	public String getItemDirector() {
    		return itemDirector;
    ...
    See more | Go to post

    Leave a comment:


  • jcato77
    replied to Inventory Program - Won't complie
    in Java
    i've tried itemDirector = getItemDirector ; and even putting hard values in there and I error out, i can remark the line out and it still complies and gives me a null value. I know i'm missing the return value to carry it over to Inventory3 I just don't know what I'm missing....
    See more | Go to post

    Leave a comment:


  • jcato77
    replied to Inventory Program - Won't complie
    in Java
    Need to understad why I'm getting a null value.

    Alright I think i'm getting closer now if someone could point out why i'm getting a null value I think I have this part solved..

    Code:
    class DVD extends Product
    {
    	public String itemDirector;
    				
    	public DVD(String itemDirector,int itemNumber, String itemName, long invQuantity, double itemPrice) 
    		{
    			super(itemNumber, itemName,
    ...
    See more | Go to post
    Last edited by jcato77; Mar 23 '08, 06:04 PM. Reason: Update to show display

    Leave a comment:


  • jcato77
    replied to Inventory Program - Won't complie
    in Java
    Sukatoa,

    I know you are helping me and I thank you but I"m still a little lost, I've done what I think you are talking about and I get an error, below is my code and the error.
    Code:
    class DVD extends Product
    {
    	private String itemDirector;
    			
    	public DVD(String itemDirector,int itemNumber, String itemName, long invQuantity, double itemPrice) 
    		{
    			super(itemNumber, itemName,
    ...
    See more | Go to post

    Leave a comment:


  • jcato77
    replied to Inventory Program - Won't complie
    in Java
    Let me ask you this I'm working on two different programs. below is code from my second program and I am trying to get the director to show. I have the code in correctly and it's appended the string but it's not pulling itemDirector and displaying it. Is my problem similar to my other one?

    Code:
    class Product implements Comparable
    {
    	private long itemNumber;    // class variable that stores the item number
    ...
    See more | Go to post

    Leave a comment:


  • jcato77
    replied to Inventory Program - Won't complie
    in Java
    how? I'm confused at this point and am trying to understand it....
    See more | Go to post

    Leave a comment:


  • jcato77
    replied to Inventory Program - Won't complie
    in Java
    So here is my complete updated code that i've been working on for several hours. I'm able to complie it now but it does not display "Total Value is " $"

    Total value should be the inventoryValue of each dvd added up to create an entireValue. I have the code but i'm told I'm missing my call to display it. Everything I've tried doesn't work. any suggestions?

    Code:
    import java.util.Arrays;
    ...
    See more | Go to post

    Leave a comment:


  • jcato77
    started a topic Inventory Program - Won't complie
    in Java

    Inventory Program - Won't complie

    I am having trouble figuring out my code and was hoping someone could point me in the right direction. Below is my code what I need to due is create a method to add and display the value of the entire inventory. I have what I think is the correct code but it's not working. Help is greatly appreciated

    Code:
    class Inventory3
    {
    	public static final int MAXIMUM_ITEMS = 4;
    	private static Product product[] = new
    ...
    See more | Go to post

  • jcato77
    started a topic Inventory Program Help
    in Java

    Inventory Program Help

    I need help with a class project I'm working on, Below is my assignment and the code I have currently created.

    Assignment:
    Modify the Inventory Program by creating a subclass of the product class that uses one additional unique feature of the product you chose (for the DVDs subclass, you could use movie title, for example). In the subclass, create a method to calculate the value of the inventory of a product with the same name...
    See more | Go to post
No activity results to display
Show More
Working...