Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. package aufg3b;
  2.  
  3. import java.io.IOException;
  4.  
  5. public class Aufg3b {
  6.  
  7.     public static void main(String[] args) throws IOException {
  8.        
  9.         boolean i, j;
  10.         boolean F= false;
  11.         boolean T= true;
  12.        
  13.         j=!F;
  14.         System.in.read();
  15.         if( !(i=T| j!=F)){
  16.             System.out.println("Fehler");
  17.             return;
  18.         }
  19.             System.out.println("|" + (i|j));
  20.             System.out.println("&" + (i&j));
  21.             System.out.println("^" + (i^j));
  22.            
  23.             }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement