3
可能重複:
Java Operators :|= bitwise OR and assign
example的Java Syntax-是什麼| =平均
是什麼| =平均在Java中?
例如下面;
note.flags | = Notification.FLAG_AUTO_CANCEL
感謝
可能重複:
Java Operators :|= bitwise OR and assign
example的Java Syntax-是什麼| =平均
是什麼| =平均在Java中?
例如下面;
note.flags | = Notification.FLAG_AUTO_CANCEL
感謝
總是先放在這裏:http://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html。
這是按位或賦值運算符。
這是一樣的:
note.flags = note.flags | Notification.FLAG_AUTO_CANCEL;