Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Thread: Syntax error!!!

    by Norm
    Replies
    23
    Views
    1,639

    Re: Syntax error!!!

    You need to compute the values before you can display them.
    For testing you can use the println() method/
    When all the values have been computed, then worry about how to display them.
  2. Thread: Syntax error!!!

    by Norm
    Replies
    23
    Views
    1,639

    Re: Syntax error!!!

    What are you asking about?
  3. Thread: Syntax error!!!

    by Norm
    Replies
    23
    Views
    1,639

    Re: Syntax error!!!

    Start with the next step after the total has been computed.
    Is that compute the average? Given the total, what else does the code need to have to compute the average?
  4. Thread: Syntax error!!!

    by Norm
    Replies
    23
    Views
    1,639

    Re: Syntax error!!!

    For example print out the value of total after it has been computed:

    System.out.println("total="+total);

    What should the program do next after it has computed the total?
  5. Thread: Syntax error!!!

    by Norm
    Replies
    23
    Views
    1,639

    Re: Syntax error!!!

    Now you need to learn how to debug the code. I use the println() method to print out the values of variables as the program executes so you can see what the computer sees when it executes the...
  6. Thread: Syntax error!!!

    by Norm
    Replies
    23
    Views
    1,639

    Re: Syntax error!!!

    That is not allowed. Methods can not be nested one inside of another.

    Methods in a class must be peers.

    Look at the tutorial for how to code methods:...
  7. Thread: Syntax error!!!

    by Norm
    Replies
    23
    Views
    1,639

    Re: Syntax error!!!

    A call to a constructor MUST use the exact same number and type of arguments that are shown in the definition. There can be more than one constructor, but the call to the constructor must match one...
  8. Thread: Syntax error!!!

    by Norm
    Replies
    23
    Views
    1,639

    Re: Syntax error!!!

    You need to copy the error message exactly so it is correct and complete. What you posted has a misspelling: founr that shows you typed it instead of copying it. You left off the ^ which is...
  9. Thread: Syntax error!!!

    by Norm
    Replies
    23
    Views
    1,639

    Re: Syntax error!!!

    There must be an error message printed on the console somewhere that you need to copy the full text of the error message and paste it here so we can see it.
  10. Thread: Syntax error!!!

    by Norm
    Replies
    23
    Views
    1,639

    Re: Syntax error!!!

    Either make numOfGrades static
    or create an instance of the class and use the reference to that instance to call its method.


    copy the full text of the error messages and paste it here.
  11. Thread: Syntax error!!!

    by Norm
    Replies
    23
    Views
    1,639

    Re: Syntax error!!!

    Please copy the full text of the error messages and paste it here.
  12. Thread: Syntax error!!!

    by Norm
    Replies
    23
    Views
    1,639

    Re: Syntax error!!!

    Did you have a question?
Results 1 to 12 of 12