public static void main(String[] args) {
 boolean t = true, f = false;
 System.out.println(t & f); // false
 System.out.println(t | f); // true
 System.out.println(t ^ f); // true
 System.out.println(!t); // false
 }