Java - see if a list module contains a certain value
Let's say I have this:
public DefaultListModel model = new DefaultListModel();
how do i make it so I can see if it contains a certain string?
Th开发者_开发技巧anks
With the contains()
method.
model.contains("MyString");
Use contains()
精彩评论