Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java中的抑扬符是什么意思?例如:
textArea.setFont(font = font.deriveFont(font.getStyle() ^ Font.BOLD));
Java中还有其他使用抑扬符的用例吗?
这是按位异或,请参阅http://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html
这是一个异或,也称为 XOR