Search:

Type: Posts; User: Norm

Page 1 of 2 1 2

Search: Search took 0.09 seconds.

  1. Replies
    63
    Views
    4,173

    Re: Java Programming project

    Please mark this thread as solved if you are finished with it.
  2. Replies
    63
    Views
    4,173

    Re: Java Programming project

    If you need help with the errors, copy the full text of the error messages and paste it here.
  3. Replies
    63
    Views
    4,173

    Re: Java Programming project

    Ask the compiler. It is usually correct.
  4. Replies
    63
    Views
    4,173

    Re: Java Programming project

    "ASDF" is a String literal with the 4 letters: ASDF
    Look in post #55 there are a lot of String litterals there with the names of the months in ""s
  5. Replies
    63
    Views
    4,173

    Re: Java Programming project

    How does that code compare to yours?
  6. Replies
    63
    Views
    4,173

    Re: Java Programming project

    Boy are you lazy. It's in this thread somewhere in earlier posts.
  7. Replies
    63
    Views
    4,173

    Re: Java Programming project

    The compiler can not find a definition for the symbol or variable named in the error message.
    All variables used in a program MUST be defined so the compiler knows what type they are.

    Many of...
  8. Replies
    63
    Views
    4,173

    Re: Java Programming project

    Not yet. They are working on it. But for now the programmer has to correct his own errors.

    If you need help with the errors, copy the full text of the error messages and paste it here.
  9. Replies
    63
    Views
    4,173

    Re: Java Programming project

    Read the tutorial on how to use a switch statement:
    The switch Statement (The Java™ Tutorials > Learning the Java Language > Language Basics)
  10. Replies
    63
    Views
    4,173

    Re: Java Programming project

    Which post? What did you change?
  11. Replies
    63
    Views
    4,173

    Re: Java Programming project

    You've coded the switch statement many times in this thread and have always had a value inside the ()s. This time you left it out and the compiler finds it as an error.

    Please edit your post and...
  12. Replies
    63
    Views
    4,173

    Re: Java Programming project

    You need to copy the full text of the error messages and paste them here. We're here and you're there. We can't see what is on your PC's screen.
  13. Replies
    63
    Views
    4,173

    Re: Java Programming project

    I don't know why you would wait for someone to tell you to compile the program. Compilations are free. I compile frequently when writing a program. Its better to have fewer errors with frequent...
  14. Replies
    63
    Views
    4,173

    Re: Java Programming project

    And?
  15. Replies
    63
    Views
    4,173

    Re: Java Programming project

    Yes, by source I meant your code before it is compiled.
  16. Replies
    63
    Views
    4,173

    Re: Java Programming project

    Print the source and use a pencil to connect a { to its pairing }
    Start at the inside and work out.
  17. Replies
    63
    Views
    4,173

    Re: Java Programming project

    Not a record, not even close.

    How many errors before your last change? Restore the code to the old version and try again.
  18. Replies
    63
    Views
    4,173

    Re: Java Programming project

    What does the compiler say?

    Please edit your post and wrap your code with


    <YOUR CODE HERE>

    to get highlighting and preserve formatting.
  19. Replies
    63
    Views
    4,173

    Re: Java Programming project

    You need to copy and post the full text of error messages.

    If you are having problems with mismatched {}s, some IDEs have a tool you can use to find the pairing {}s
    On my IDE put the cursor just...
  20. Replies
    63
    Views
    4,173

    Re: Java Programming project

    Don't post code before the compiler has seen it.
  21. Replies
    63
    Views
    4,173

    Re: Java Programming project

    Make a complete class that will compile and execute, not just pieces of code.


    What does that mean? It looks like a copy and paste was done with no editing. A waste of time to copy code from...
  22. Replies
    63
    Views
    4,173

    Re: Java Programming project

    Ok, now add some code to the method to start computing the cost. Do it a simple step at a time.
    Call the method with a price code String and print out the value of cost that it computes.
  23. Replies
    63
    Views
    4,173

    Re: Java Programming project

    When you get to a computer, type in the code and compile it to see what the compiler thinks of it.
  24. Replies
    63
    Views
    4,173

    Re: Java Programming project

    See the tutorial: Defining Methods (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
  25. Replies
    63
    Views
    4,173

    Re: Java Programming project

    That's not the definition of a method. That would be part of the code that would be used in the method.
Results 1 to 25 of 30
Page 1 of 2 1 2