public class Booleans {
  
  
  public static void main(String[] args) { 
    boolean flag = true;
    boolean b = false;
    
    System.out.println(!false + " " + !true);
    
    System.out.println(flag&&b);
    
    System.out.println(flag||b);
    
    //not then and then or 
    
    //(A || B) && C
  }
}
