【发布时间】:2012-05-05 16:36:19
【问题描述】:
|= 在 Java 中是什么意思?
例如下面;
note.flags |= Notification.FLAG_AUTO_CANCEL
谢谢
【问题讨论】:
|= 在 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;
【讨论】: