0
what does it mean
found |= text.contains(wort.toLowerCase().trim()); what does |= mean?
2 Answers
+ 3
That is a bitwise OR operator.
The variable 'found' should be a boolean and the expression on the right hand side would also evaluate to a boolean.
0 | 0 = 0
0 | 1 = 1
1 | 0 = 1
1 | 1 = 1