Quick actions

cmd+k|ctrl+k

Navigation

Languages

percobaan 

Snippet info

Language

Java

Visibility

public

Author

aureliaagt12

Created

2023-04-08T16:56:32.406279Z

Updated

2023-04-08T16:56:32.406279Z

class Conditional {
    public static void main (String args[]) {
        int x = 0;
        boolean isEven = false;
        System.out.println("x = " + x);
        x = isEven ? 4 : 7;
        System.out.println("x = " + x);
    }
}
INFO