Check if an Interface a Collection interface

If I have gotten an a particular interface from an array of class1.getInterfaces().  How do I check to see if this interface is the interface java.util.Collection?
bcsmessAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
if (cls==Collection.class)
{
}
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.