Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Madeline Ross   on Nov 06 In Java Category.

  
Question Answered By: Kerry Wright   on Nov 06

perhaps something like:

public static  final String [] bla = { "a","b", "c", "d", "e"};

public boolean itsThere(String str)
{
for(int i=0; i<bla.length; i++)
if(bla[i].equals(str.))
return true;
return false;
}

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on need help with compareTo(Object o) Or get search suggestion and latest updates.


Tagged: