Search:

Type: Posts; User: Actinistia

Search: Search took 0.14 seconds.

  1. Replies
    10
    Views
    1,496

    Re: ()Method cannot be applied to ()

    Do you think you could paste the error message? Also, for the areaCircle(int); I didn't mean to literally put "int" in there but to put an integer value, either an int variable or value like in my...
  2. Replies
    10
    Views
    1,496

    Re: ()Method cannot be applied to ()

    Well, pretty much, I think. In your case, since you wanted the method to calculate the area of a circle given a radius, when you call it, it basically wants an integer (or radius), to use in the...
  3. Replies
    10
    Views
    1,496

    Re: ()Method cannot be applied to ()

    I don't have that much Java experience but what the error is saying is that the method needs an int in the () of the method. Your instance method is:

    public static double AreaCircle(int radius) ...
Results 1 to 3 of 3