All pastes #761105 Raw Edit

Zeug

public text v1 · immutable
·published 2007-11-04 16:42 UTC
rendered paste body
class Aufgabe2 {
	public static void main (String [] args) {
	
	boolean erg1, erg2, erg3, erg4, erg5;
	boolean istStudent;
	boolean hatKind;
	boolean hatJob;
	int i=1;
	int j=2;
	int k=3;
	
	erg1 = (j != k) & (j == i);
	erg2 = (j < 10) | (j > 50) & (j%2==1);
	erg3 = istStudent & ! hatKind;
	erg4 = (istStudent & hatKind) | (!istStudent & !hatKind);
	erg5 = istStudent & (hatKind ^ hatJob);
	System.out.println("Ergebnis1: "+erg1+" Ergebnis2: "+erg2+" Ergebnis3: "+erg3+" Ergebnis4: "+erg4+" Ergebnis5: "+erg5);
	}
}