Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Aufgabe2 {
- boolean t1f1, t1f2, t1w1, t1w2, t1e1, t2f1, t2f2, t2w1, t2w2, t2e1, c1t1, c2t1, c1t2, c2t2;
- public static void main(String[] args){
- Aufgabe2 aufgabe2 = new Aufgabe2();
- aufgabe2.test();
- }
- void test(){
- boolean s1t1 = true, s2t1 = true, s3t1 = true, s1t2 = false, s2t2 = false;
- if(s1t1 ^ s2t1)
- t1f1 = true;
- if(s1t1 && s2t1)
- t1w2 = true;
- if(t1f1 ^ s3t1)
- t1f2 = true;
- c1t1 = t1f2;
- if(t1f1 && s3t1)
- t1w1 = true;
- if(t1w2 || t1w1)
- t1e1 = true;
- c2t1=t1e1;
- if(s1t2 ^ s2t2)
- t2f1 = true;
- if(c2t1 ^ t2f1)
- t2f2 = true;
- if(s1t2 && s2t2)
- t2w2 = true;
- if(t2f1 && c2t1)
- t2w1 = true;
- if(t2w2 || t2w1)
- t2e1 = true;
- c1t2 = t2f2;
- c2t2 = t2e1;
- System.out.println("C1T1: " + c1t1 +"\n"+
- "C1T2:" + c1t2 +"\n"+
- "C2T2:" + c2t2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement