标题: 求解大佬们 [打印本页] 作者: FaceRea1Void 时间: 2021-1-14 16:11 标题: 求解大佬们 What would be the output of the following code fragment? (2 marks)
boolean b = true;
int n = 5;
if(n>=5 && b)
System.out.println("true");
if(n<=5 || b)
System.out.println("true");
if(n==5 || !b)
System.out.println("true");
true
true
true
true
true
true
It will not produce any output 作者: sd2355704 时间: 2021-4-12 20:00
就是if点条件都达到就运行if里面点内容