Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package aufg3b;
- import java.io.IOException;
- public class Aufg3b {
- public static void main(String[] args) throws IOException {
- boolean i, j;
- boolean F= false;
- boolean T= true;
- j=!F;
- System.in.read();
- if( !(i=T| j!=F)){
- System.out.println("Fehler");
- return;
- }
- System.out.println("|" + (i|j));
- System.out.println("&" + (i&j));
- System.out.println("^" + (i^j));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement