java - Problems using contains() method for arraylist -


i trying check if arraylist b contains string arraya this, doesn't work:

string match = arraya[i]; if (! b.contains(match)) {     outputfile.print(match); } 

is because used contains() method incorrectly?
can put name of variable in contains() method contains(match) here?
or have put string in contains(), contains("name")?

in

  if (! b.contains(match)) 

you check, if b not contain match. apart that, approach valid.


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -