Results 1 to 11 of 11

Thread: Tlouvierre

  1. #1
    tlouvierre is offline Member
    Join Date
    Apr 2009
    Location
    I live Stafford Texas right outside of Houston.
    Posts
    78
    Rep Power
    0

    Default Tlouvierre

    [code]
    publicclassDVD
    {
    public static void main(String[] args);
    private String name;
    private int itemNumber;
    private int stockQuantity;
    private double price;
    public DVD(String name, int itemNumber, int stockQuantity, double price){
    this.name = name;
    this.itemNumber = itemNumber;
    this.stockQuantity = stockQuantity;
    this.price = price;
    }

    public String toString(){
    return "DVD Title: " + this.name + "\n" +
    "Item Number: " + this.itemNumber + "\n" +
    "Stock Quantity: " + this.stockQuantity + "\n" +
    "Price: " + this.price + "\n";
    }

    public String getName(){
    return this.name;
    }

    public void setName(String name){
    this.name = name;
    }

    public int getItemNumber(){
    return this.itemNumber;
    }

    public void setItemNumber(int itemNumber){
    this.itemNumber = itemNumber;
    }

    public int getStockQuantity(){
    return this.stockQuantity;
    }

    public void setStockQuantity(int stockQuantity){
    this.stockQuantity = stockQuantity;
    }

    public double getPrice(){
    return this.price;
    }

    public void setPrice(double price){
    this.price = price;
    }
    }[code]
    error
    javac: invalid flag: E:\IT 215 Java Programming\publicclassDVD.Java
    Usage: javac <options> <source files>
    use -help for a list of possible options

    Tool completed with exit code 2

    I am not sure what this means and it is the only preventing me from making my project function. Can you help?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    1) How are you compiling this program? With an IDE or on the command line? The problem here is not with the code per se, but the actual statements calling the java compiler.
    2) Please correct your code tags. The bottom tag has a backslash:
    [/code]

  3. #3
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    8

    Default Suggestions...

    tlouvierre... a couple of suggestions:
    • Please use a meaninful title for your posts. "tlouvierre" does not indicate what the problem is. "What does "invalid flag" error mean?" would have been a much better descriptive title.
    • So far, you have never indicated if the help you have recieved (in previous posts) was useful and much less have thanked people for trying to help you. That is not a very good way to try to get further help on forums.

    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  4. #4
    tlouvierre is offline Member
    Join Date
    Apr 2009
    Location
    I live Stafford Texas right outside of Houston.
    Posts
    78
    Rep Power
    0

    Default response to post I have received.

    Quote Originally Posted by CJSLMAN View Post
    tlouvierre... a couple of suggestions:
    • Please use a meaninful title for your posts. "tlouvierre" does not indicate what the problem is. "What does "invalid flag" error mean?" would have been a much better descriptive title.
    • So far, you have never indicated if the help you have recieved (in previous posts) was useful and much less have thanked people for trying to help you. That is not a very good way to try to get further help on forums.

    CJSL
    Hello and How are you today? Well, to answer your implied question. I have a lot of trouble with Java Forums and getting a response. One time and one time only did I get a real answer and that was from and India guy which I do not have his name but he helped by telling me to put the words together instead of listing them apart for the public class and it worked but as far as anything else that I have asked questions on I get the run around and no answer at all. Not even a try but its ok because I figured it out myself. Thank you no applause. If I had just tried instead of panicing I would have had it.

  5. #5
    tlouvierre is offline Member
    Join Date
    Apr 2009
    Location
    I live Stafford Texas right outside of Houston.
    Posts
    78
    Rep Power
    0

    Default What compiling program do I use?

    Quote Originally Posted by Fubarable View Post
    1) How are you compiling this program? With an IDE or on the command line? The problem here is not with the code per se, but the actual statements calling the java compiler.
    2) Please correct your code tags. The bottom tag has a backslash:
    [/code]
    I use an IDE called Text.pad. I have never heard of a command line what is that? You say the problem is with calling the java compiler. Like in the public class statement or something else?

  6. #6
    tlouvierre is offline Member
    Join Date
    Apr 2009
    Location
    I live Stafford Texas right outside of Houston.
    Posts
    78
    Rep Power
    0

    Default

    Thank you to RamyaSivaKanth for helping me to complete a project in my Java Programming class.

  7. #7
    tlouvierre is offline Member
    Join Date
    Apr 2009
    Location
    I live Stafford Texas right outside of Houston.
    Posts
    78
    Rep Power
    0

    Default

    I would like to know why conventional colleges chose to teach C++ and online colleges like University of Phoenix teach JAVA?

  8. #8
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    8

    Default hhhmmm...

    I'm not going to answer you the way I feel like answering you (counting patiently to 1000... 1, 2, 3, ...).
    It's sad that you feel that the forums don't help you. I hope you have better luck with you're future posts.

    CJSL
    Last edited by CJSLMAN; 05-25-2009 at 07:16 PM. Reason: corrected a typo...
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  9. #9
    tlouvierre is offline Member
    Join Date
    Apr 2009
    Location
    I live Stafford Texas right outside of Houston.
    Posts
    78
    Rep Power
    0

    Default Shutting me out

    Quote Originally Posted by CJSLMAN View Post
    I'm not going to answer you the way I feel like answering you (counting patiently to 1000... 1, 2, 3, ...).
    It's sad that you feel that the forums don't help you. I hope you have better luck with you're future posts.

    CJSL
    I did not mean to implie that I have not recieved any help from Java. I just meant that I was still working on the errors when I asked you to help and I figured out most of the errors myself. I thought you would be happy about that. Java Forums speaks in Java code and I don't understand it. It is not plain enough english for me. Sorry. I will look else where.

  10. #10
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    8

    Default hey... no problem

    No use in getting all upset... I'm not "shutting you out". We probably have a language misunderstanding someplace along the line. If you noticed, those were suggestions I gave you. Also, it's good for you to figure out the problems yourself... it means you're learning.
    Again... I hope you get the the help you're looking for in future posts.

    Luck,
    CJSL
    Chris S.
    Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.

  11. #11
    tlouvierre is offline Member
    Join Date
    Apr 2009
    Location
    I live Stafford Texas right outside of Houston.
    Posts
    78
    Rep Power
    0

    Default feed back

    Thank you for quick response. I think that there was a huge misunderstanding and thank you for not shutting me out. That is a big relief. I am getting help with my problem solving right now as we speak. Thank you again. Bye for now.

Similar Threads

  1. tlouvierre
    By tlouvierre in forum New To Java
    Replies: 5
    Last Post: 05-28-2009, 06:03 AM
  2. tlouvierre
    By tlouvierre in forum New To Java
    Replies: 5
    Last Post: 05-13-2009, 09:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •