Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Replies
    10
    Views
    1,287

    Re: compiler error regarding method call

    Having so many methods with the same name looks like a disaster waiting to happen.
  2. Replies
    10
    Views
    1,287

    Re: compiler error regarding method call

    Sorry, I have no idea why the compiler is unhappy. I've only used the static imports once and had no problems.
    I try to keep my code simple and readable. Compiler short cuts can some times be...
  3. Replies
    10
    Views
    1,287

    Re: compiler error regarding method call

    You did not post the code that caused the errors shown in post #5

    Are you getting confused because the names are the same? The names AND the arguments must be the same.


    Post the code for this.
  4. Replies
    10
    Views
    1,287

    Re: compiler error regarding method call

    The compiler wants to find a method defined with the same signature as the method is being called with. If there is no print(int x) defined, then the compiler will give an error.

    If you code:...
  5. Replies
    10
    Views
    1,287

    Re: compiler error regarding method call

    Please copy and paste the full and exact text of the compiler's error message. Your edited version leaves out info.

    Where is the print() method defined that takes an int value as an argument? ...
Results 1 to 5 of 5