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;}