User Profile

Collapse

Profile Sidebar

Collapse
Kiamari
Kiamari
Last Activity: Dec 22 '07, 07:09 PM
Joined: Nov 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Kiamari
    replied to need help adding to existing code..
    in Java
    OMG!!

    so, i added one more curly bracket to the very end of the code like this:

    Code:
    }}}//end class Inventory2
    AND NOW I HAVE 32 ERRORS!!


    Inventory2 is not abstract and does not override abstract method compareTo(java. lang.Object) in java.lang.Compa rable
    class Inventory2 implements Comparable

    lines 23 - 94 have this beginning error... cannot find symbol
    symbol...
    See more | Go to post

    Leave a comment:


  • Kiamari
    replied to need help adding to existing code..
    in Java
    ok, i'm trying to work on this.....and here is what i got for my code

    Code:
    import java.util.*;
    class Inventory2 implements Comparable
     
    {
    	private String dvdTitle;
        private int dvdItem;
        private int dvdStock;
        private double dvdPrice;
        
    }//end main method
    
    class Dvd { // Constructor for the Dvd class
       {
    	  dvdTitle = "";
    ...
    See more | Go to post

    Leave a comment:


  • Kiamari
    replied to need help adding to existing code..
    in Java
    i saw this site already...but still dont know where to begin........
    See more | Go to post

    Leave a comment:


  • Kiamari
    replied to need help adding to existing code..
    in Java
    i took a look at a few sites...but its still not clear to me.......do you know any sites?...
    See more | Go to post

    Leave a comment:


  • Kiamari
    started a topic need help adding to existing code..
    in Java

    need help adding to existing code..

    here's what i have to do:

    Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price of each unit, and the value of the inventory of that product. In addition, the output should display the value of the entire inventory.
    •...
    See more | Go to post

  • Kiamari
    replied to java errors - what does this mean??
    in Java
    there's no text before import.java.uti l.scanner line....what you saw above was my full code.....until i was told to remove the lines with DVD CLASS and DVD INVENTORY....i reposted the code again with the errors i got after removing those lines.....

    btw: i am calm...just waiting for the right answer/help...thats all......
    See more | Go to post

    Leave a comment:


  • Kiamari
    replied to java errors - what does this mean??
    in Java
    sorry, i dont know what you are asking. after running my code that's the error i get.....for my full code take a look at the previous posts....
    See more | Go to post

    Leave a comment:


  • Kiamari
    replied to java errors - what does this mean??
    in Java
    its definitely not my java version or installation. i have the latest version 6.0...and the other day i had a program to run perfect.... the problem is somewhere in my code and i just cant figure it out...so i came here in hopes that someone could point me in the right direction or tell me what i have to remove for the code to work.....but it seems everything someone says to remove...anothe r error happens......i thought that providing my code someone...
    See more | Go to post

    Leave a comment:


  • Kiamari
    replied to desperate need of help fixing code?!?!
    in Java
    it's not a double post...that's a seperate file i was having trouble with also...
    See more | Go to post

    Leave a comment:


  • Kiamari
    replied to desperate need of help fixing code?!?!
    in Java
    i did some editing...so here is what i have so far:

    package dvdinventory;

    public class Dvd {

    private String productNumber;
    private String itemName;
    private int numberofUnits;
    private double priceperUnit;

    public Dvd(String "0", String "", int 0, double 0.0)
    {
    productNumber = "0";
    itemName = "";...
    See more | Go to post

    Leave a comment:


  • Kiamari
    replied to java errors - what does this mean??
    in Java
    ok, so i did what you said about removing the two lines and now i get these errors:

    in the build output window it says: class, interface, or enum expected
    import java.util.Scann er;
    ^
    1 error

    in the general output window it says: java.lang.NoCla ssDefFoundError : DvdInventory
    Exception in thread "main"
    Process completed.

    now how...
    See more | Go to post

    Leave a comment:


  • Kiamari
    replied to java errors - what does this mean??
    in Java
    im new to java...umm i dont know what you mean??...
    See more | Go to post

    Leave a comment:


  • Kiamari
    replied to desperate need of help fixing code?!?!
    in Java
    i think it is closed....if not, where do i close it?...
    See more | Go to post

    Leave a comment:


  • Kiamari
    started a topic java errors - what does this mean??
    in Java

    java errors - what does this mean??

    class, interface, or enum expected
    DVD CLASS
    ^

    class, interface, or enum expected
    DVDINVENTORY CLASS
    ^

    HOW DO I FIX THESE TWO ERRORS WITHOUT GETTING OTHER ERRORS???

    here is my code:

    DVD CLASS


    public class Dvd {

    private String productNumber;
    private String itemName;
    private int numberOfUnits;
    private double...
    See more | Go to post

  • Kiamari
    started a topic desperate need of help fixing code?!?!
    in Java

    desperate need of help fixing code?!?!

    i have tried everything but i keep getting these errors: illegal start of expression public Dvd()...and there's an arrow pointing under the p. the other error is: javalang.nosuch methoderror.mai n exception in main thread.

    i am providing my code so its not like im asking anyone to do it all for me...only to correct my mistakes cuz apparently i dont know what im doing or im not doing something right.

    by the way im using...
    See more | Go to post

  • Kiamari
    replied to Java Help!!
    in Java
    ok, so how do i do that?????

    reminder: i am NEW to java...
    See more | Go to post

    Leave a comment:


  • Kiamari
    started a topic Java Help!!
    in Java

    Java Help!!

    I'm new to Java and sort of stuck....

    this is what i have to do:

    Choose a product that lends itself to an inventory (for example, products at your workplace, office supplies, music CDs, DVD movies, or software).
    • Create a product class that holds the item number, the name of the product, the number of units in stock, and the price of each unit.
    • Create a Java application that displays the product...
    See more | Go to post
    Last edited by Ganon11; Nov 27 '07, 11:53 PM. Reason: Please use the [CODE] tags provided.
No activity results to display
Show More
Working...