There seems to be an error in this article. I wrote the following code, which can be converted into trinocular
Jesse·Bryant
Jesse·Bryant 2021-12-28 20:30:00
0
1
852

public class IfDemo2 {

public static void main(String[] agrs) {

int x=100; //Use IF to demonstrate

if(x% 2==0) {

System.out.println("100 is an even number");

System.out.println("100 is an odd number");

");

}

//Use trinocular demonstration

String b=(x%2==0)?"100 is an even number":"100 is an odd number ";

              System.out.println(b);

Jesse·Bryant
Jesse·Bryant

reply all(1)
不开心就吃

Uh-huh

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template