bounds.contains() problem

I try to use method above with a simple point class in this form:

bounds.contains(newPoint)

, but it says: cannot resolve method.

What is the class of ‘bounds’ and on what platform are you getting this error?

Even though you can compile using that method, when running on say android, some methods might not be available at runtime or something like that, causing errors like these.

You’ll have much better luck if you post an MCVE that we can actually run. As of now any answers you get will just be guessing.

cannot resolve method occurs when you either dont have a method named that or the method is defined as

private

not

public