0

what does it mean

found |= text.contains(wort.toLowerCase().trim()); what does |= mean?

11th Jan 2021, 8:05 PM
Manfred h
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
11th Jan 2021, 8:22 PM
Avinesh
Avinesh - avatar