Quick actions

cmd+k|ctrl+k

Navigation

Languages

Javada mantık yapıları

Snippet info

Language

Java

Visibility

public

Author

malihsen

Created

2019-09-26T10:48:45Z

Updated

2019-09-26T10:48:45Z

class Main {
    public static void main(String[] args) {
        // mantık sorguları
    boolean a = false; // 0 olumsuz
    boolean b = true; // 1 olumlu
    
    System.out.println("a ve b = "+ (a && b)); // 0 && 1 = 0 and ve  "a  ve  b olumsuzsa 0 olumlu ise 1  " false
    System.out.println("a veya b = "+ (a || b)); // 0 || 1 = 1 yada or " a veya b  den biri olumsuzsa 0 olumlu ise 1 " true
    System.out.println("olumsuz a = "+ (!a ));  // !0  = 1 olumsuz not "  a  olumsuzsa 0 olumlu ise 1 " true
    }
}
INFO