Questions tagged [contain]
214 questions
2
votes
2 answers
Mouse contain within object
I'm new to learning Java and for a few days I have searched for a way to click drawn objects, to contain the mouse within a object such as g.drawRect(x, x, x, x)...
I came across the code below, I'm trying to make it work so I can learn what is…

NewbieLearner
- 87
- 8
2
votes
4 answers
Checking elements in the list
I've spend few hours solving this problem but program doesn't work (syntax error).
Cheking an answer for similar question didn't help. What's wrong with the code below?
I want to chek if list (password) contains at least one digit, as well as…

Nikolay
- 80
- 1
- 2
- 9
2
votes
2 answers
Check existence of element in list of elements
In Python one can do something like this
the_weather_is = 'sunshiny'
bad_mood = {'dreary', 'drizzly', 'flawy', 'blustery', 'thundery'}
if the_weather_is in bad_mood:
print 'Stay at home...'
else:
print 'All fine...'
How would the MATLAB…

embert
- 7,336
- 10
- 49
- 78
2
votes
4 answers
See if String Contains An Element in an Array
I am trying to go through an array of Operators to see if one of the operators is located in the String.
For example:
String[] OPERATORS = { "<", "<=", ... };
String line = "a <= b < c ";
How would I go about going through a loop that checks to…

user3254134
- 25
- 1
- 4
2
votes
1 answer
Filter with 3 and more criteria
Good day everyone!
I extremely need to use filter with 3 criteria, but by default there is just 2. So how could I find cells (in certain column) which contain "AGD" or "mrk" or "macro" using standard excel or vba?
thx in advance

Seya
- 91
- 1
- 3
- 11
2
votes
2 answers
Find contains class name in multiple classes
I want to get the id in class like...
Result must be 111 , 222 and 3
So I code like this
var id =…

l2aelba
- 21,591
- 22
- 102
- 138
2
votes
1 answer
Vector. Checking to see if it contains "Key". C++
Possible Duplicate:
How to find an item in a std::vector?
Hey like the title suggests i would like to check to see if the vector contains the string "Key". I have been looking around on Google and i cant find anything in the vector library. Can…

Pendo826
- 1,002
- 18
- 47
2
votes
1 answer
jquery check if returned value contains string
I have a jquery on button click it runs a function in backend code. my code will return a string which may contain some values. Can I say if my string contains then means success otherwise show error(see my code below), the following code throws a…

Zaki
- 5,540
- 7
- 54
- 91
1
vote
2 answers
Strange behaviours of the String's contains and replaceAll methods with special characters
I did a little research with the String's contains and replaceAll methods.
char c = '*';
String str =…

ironwood
- 8,936
- 15
- 65
- 114
1
vote
2 answers
CakePHP -- limiting results from one model to those with matching conditions in an associated model
I'm just getting started in CakePHP, and am running into trouble limiting retrieved results to those where a field in an associated model matches a certain value. I've found a lot of related questions here and elsewhere, but they seem to deal with…

cmw
- 855
- 7
- 17
1
vote
3 answers
1
vote
4 answers
Java: How to check if a string is a part of any LinkedList element?
Okay so I have a LinkedList, and I have a String. I want to check if the String is contained within any of the LinkedList elements.
For example:
String a = "apple";
String listelement = "a bunch of apples";
LinkedList list = new…

Blackvein
- 558
- 4
- 10
- 23
1
vote
1 answer
CSS div contained in parent incorrectly with IE
I am having a problem with this website displaying incorrectly with IE.
http://outlawstar.zymichost.com/
I think that the problem is that menu_bar is not contained within the head div. However, the code works properly in both chrome and firefox. …

Jedediah Shumaker
- 509
- 1
- 5
- 7
1
vote
4 answers
How find if arraylist contains a value which is in class field?
I have class:
static class AnotherClass {
int number;
String isPrime;
public int getNumber() {
return number;
}
public String getPrime() {
return isPrime;
}
public…

deadfish
- 11,996
- 12
- 87
- 136