No.
Often you need to search a list for a particular item. Here is a start of an example program:
public class SearchTester
{
public static void main ( String[] args )
{
final int theSize = 20 ;
String[] strArray = new String[ theSize ] ;
strArray[0] = "Boston" ;
strArray[1] = "Albany" ;
strArray[2] = "Detroit" ;
strArray[3] = "Phoenix" ;
strArray[4] = "Peoria" ;
strArray[6] = "Albany" ;
strArray[7] = "Houston" ;
strArray[8] = "Hartford" ;
// print out only those cells with data
for (int j=0; j < strArray.length; j++ )
if ( strArray[j] != null )
System.out.println( strArray[j] );
}
}
Is "Peoria" in the list?