Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Thread: Java Method Help

    by Norm
    Replies
    17
    Views
    1,470

    Re: Java Method Help

    Glad you got it to work.
  2. Thread: Java Method Help

    by Norm
    Replies
    17
    Views
    1,470

    Re: Java Method Help

    Please copy the full text of the error message and paste it here.
  3. Thread: Java Method Help

    by Norm
    Replies
    17
    Views
    1,470

    Re: Java Method Help

    A char is one letter, a String allows for many characters. Which do you need? A String can be a single letter.
    A char can never be more than one letter.
  4. Thread: Java Method Help

    by Norm
    Replies
    17
    Views
    1,470

    Re: Java Method Help

    You should compile the code and fix the problems before trying to execute it. That error message is from when you try to execute the code. It won't execute with compiler errors!!!

    Is this the...
  5. Thread: Java Method Help

    by Norm
    Replies
    17
    Views
    1,470

    Re: Java Method Help

    The compiler prints out error messages when it finds errors.
    Here is a sample error message from the javac compiler:


    TestSorts.java:138: cannot find symbol
    symbol : variable var
    location:...
  6. Thread: Java Method Help

    by Norm
    Replies
    17
    Views
    1,470

    Re: Java Method Help

    Please copy the full text of the error messages and paste it here. There is useful and important info in the messages.
  7. Thread: Java Method Help

    by Norm
    Replies
    17
    Views
    1,470

    Re: Java Method Help

    That says the println() method takes ONE String argument. The posted code has several String arguments separated by commas. Try removing the commas and making the arg one String by using the +...
  8. Thread: Java Method Help

    by Norm
    Replies
    17
    Views
    1,470

    Re: Java Method Help

    What happens now when you compile and execute the code?
    Copy the output and paste it here and explain what is wrong with it.
  9. Thread: Java Method Help

    by Norm
    Replies
    17
    Views
    1,470

    Re: Java Method Help

    Can you describe what the method is supposed to do?
    What happens now when you compile and execute the code?
    Copy the output and paste it here and explain what is wrong with it.
Results 1 to 9 of 9