class

Anonymous
java
06/08/2022 7:17 AM
344 B
18
Indexable
public class Ternary {
    public static void main(String[] args) {

        Integer x = 1987;
        Integer y = 1987;
        System.out.println(x == y ? "A" : "B");

        x = 10;
        y = 10;
        System.out.println(x == y ? "A" : "B");
    }
}
Editor is loading...