No method matching x found in class y

  • Share
  • Share

Applies to:
NA

Description:
The method being called exists but cannot be accessed from where it is called

Cause:
The method is declared as private:
private String myTest()
{
return x;
}

JAVA-Compiler , , , ,

  1. admin
    March 9th, 2009 at 18:22 | #1

    Declare the method public.

    Example:
    public String myTest()
    {
    return x;
    }

  1. No trackbacks yet.