1234567891011121314151617181920212223242526272829 |
- class Exer03
- {
- public static void main(String[] args)
- {
-
- int x = 4;
- int y = 1;
- if (x > 2) {
- if (y > 2)
- System.out.println(x + y);
-
-
- System.out.println("lovecoding");
- } else
- System.out.println("x is " + x);
- boolean b = true;
-
- if(b = false)
- System.out.println("a");
- else if(b)
- System.out.println("b");
- else if(!b)
- System.out.println("c");
- else
- System.out.println("d");
- }
- }
|