Join
Blogs
Questions
Videos
Tags
Members
Search
 
 
Create your own blog, earn points and get popular!

Java Vector Contains

How do I check if the Java vector contains a particular object? Is there any method available which enable us to check whether the vector contains specified element?
No votes yet
Share this
1 answer
venkatjdv's picture
By invoking vector.contains("venkat");

It returns true if venkat obj is avilable in vector otherwise it returns false
No votes yet