📜  java 或符号 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:21.661000             🧑  作者: Mango

代码示例1
//logical OR is || in Java
public static boolean or(boolean a,boolean b){
    return a||b;
}
//bitwise OR is | in Java
public static int bitwiseOr(int a,int b){
    return a|b;
}