import java.io.*; //java girdi cikti sinifini cagir
import javax.swing.*;

class booleanA
 {
      public static void main(String args[])
      {
          boolean b1,b2,b3,b4;
          boolean x1,x2,x3,x4,x5,x6;
          b1=true;
          b2=false;
          b3=true;
          b4=false;
          x1 = b1&&b2;
          x2 = b1&&b3;
          x3 = b2&&b4;
          x4 = b1||b2;
          x5 = b1||b3;
          x6 = b2||b4;
          String s1=b1+" and "+b2+" = "+x1+"\n";
          String s2=b1+" and "+b3+" = "+x2+"\n";
          String s3=b2+" and "+b4+" = "+x3+"\n";
          String s4=b1+" or "+b2+" = "+x4+"\n";
          String s5=b1+" or "+b3+" = "+x5+"\n";
          String s6=b2+" or "+b4+" = "+x6;
          String s=s1+s2+s3+s4+s5+s6;
          JOptionPane.showMessageDialog(null,s," boolean variable processes",JOptionPane.PLAIN_MESSAGE);
       }
 }
