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 为例:
System.out.println(10 & 7);
这会输出 2。为什么会输出 2?