Home > Contents > Index >
IList.stringInList
Looks for a string within this list.
Syntax
public boolean stringInList(String item)Parameters
item
- String to search for in list
Description
The
stringInList
method looks for a string within a list.For one-column lists, it can be implemented to determine whether a given value is in any row. This method only works on
StringList
andFileList
objects.Returns
Returns
true
if string is in list. Returnsfalse
if the string is not in the list, or if anIList
implementation does not support this method.Example
IList listA = ics.GetList("myList"); boolean inList = listA.stringInList("this string"); if (!inList) { //the string you supplied is not in the list //or the IList implementation does not support this method. }
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.