Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    22
    Views
    17,128

    Re: Simple Commission Calculator

    This part of the message says that there is something on line 46 that is not part of a statement.
    Is that where there was a missing + in the middle of a String?

    There was a long complicated...
  2. Replies
    22
    Views
    17,128

    Re: Simple Commission Calculator

    Try to get the compiler's error messages and post them here.
  3. Replies
    22
    Views
    17,128

    Re: Simple Commission Calculator

    I don't recognize that message. Is it from the IDE, not from the javac compiler program?

    I don't know why beginners are encouraged to use an IDE before they understand how to write simple...
  4. Replies
    22
    Views
    17,128

    Re: Simple Commission Calculator

    If you use the compiler, it will generate error messages that can be copied and pasted.
    Here is a sample:


    TestSorts.java:138: cannot find symbol
    symbol : variable var
    location: class...
  5. Replies
    22
    Views
    17,128

    Re: Simple Commission Calculator

    Where is the "void"? The error message did not give a line number.

    What error messages does the compiler give? Can you compile the code without trying to execute it? You won't be able to execute...
  6. Replies
    22
    Views
    17,128

    Re: Simple Commission Calculator

    Please post the full text of the error message.


    Look at the API doc for all the choices.
  7. Replies
    22
    Views
    17,128

    Re: Simple Commission Calculator

    Make sure all the ( have a matching ).

    It looks like you might need some + operators to connect all the parts of the String into one String.

    You don't need the ()s around the "\n"
  8. Replies
    22
    Views
    17,128

    Re: Simple Commission Calculator

    Add a newline character: ("\n") where you want a line to end and the following part of the String to be on the next line.
    Add some spaces between the numbers: num1 + " " + num2
    so you can see...
  9. Replies
    22
    Views
    17,128

    Re: Simple Commission Calculator

    Please post the current output and show what is wrong with it and show how you want it to be.
  10. Replies
    22
    Views
    17,128

    Re: Simple Commission Calculator

    Is the , the character for decimal points? In the US we use the .
    That one error can cause the others.
  11. Replies
    22
    Views
    17,128

    Re: Simple Commission Calculator

    Can you show what the code does now, explain what is wrong and show what the output should be?

    For a first attempt at displaying the table, just use the println() method. Later you can look into...
Results 1 to 11 of 11