我看到过Java程序中在方法调用中使用管道字符。
例如:
I've seen the pipe character used in method calls in Java programs.
For example:
public class Testing1 {
public int print(int i1, int i2){
return i1 + i2;
}
public static void main(String[] args){
Testing1 t1 = new Testing1();
int t3 = t1.print(4, 3 | 2);
System.out.println(t3);
}
}
当我运行它时,我只会得到7
。
请问有人能解释一下方法调用中的管道符号是什么意思,以及如何正确使用吗?