I'm trying to check if an object implements an interface (If that class of that object implements the interface) in Java.
How do I do that?
I saw you can do this.getClass().getInterfaces(), but that gives me an array, and I need to search that array, but what do I use to check?