Add exercises
This commit is contained in:
parent
1eb492dff4
commit
8bb587cffd
|
@ -79,17 +79,16 @@ boolean oneLarger = one > two; //oneLarger enthält true
|
||||||
boolean result = true && false || !(false || true); //Welchen Wert hat result?
|
boolean result = true && false || !(false || true); //Welchen Wert hat result?
|
||||||
```
|
```
|
||||||
2) ```java
|
2) ```java
|
||||||
boolean result = true && false || !(false || true); //Welchen Wert hat result?
|
int two = +3 -6; //Welchen Wert hat two?
|
||||||
```
|
```
|
||||||
3) ```java
|
3) ```java
|
||||||
boolean result = true && false || !(false || true); //Welchen Wert hat result?
|
int x = 0;
|
||||||
|
x += 3;
|
||||||
|
x =+ 5; //Welchen Wert hat x?
|
||||||
|
```
|
||||||
|
4) ```java
|
||||||
|
int a = 3;
|
||||||
|
int b = ++a - 1;
|
||||||
|
int c = a++ * 6; //Welchen Wert haben a, b und c?
|
||||||
```
|
```
|
||||||
int two = +3 -6; //Welchen Wert hat two?
|
|
||||||
int x = 0;
|
|
||||||
x += 3;
|
|
||||||
x =+ 5; //Welchen Wert hat x?
|
|
||||||
ant a = 3;
|
|
||||||
ant b = ++a - 1;
|
|
||||||
ant c = a++ * 6; //Welchen Wert haben a, b und c?
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
Loading…
Reference in New Issue