Merge branch 'master' of git.haw-hamburg.de:pm1-tutorium/slides

This commit is contained in:
Henri Burau 2020-03-25 15:42:13 +01:00
commit 7a0bb0549a
2 changed files with 10 additions and 11 deletions

View File

@ -81,17 +81,16 @@ boolean oneLarger = one > two; //oneLarger enthält true
boolean result = true && false || !(false || true); //Welchen Wert hat result?
```
2) ```java
boolean result = true && false || !(false || true); //Welchen Wert hat result?
int two = +3 -6; //Welchen Wert hat two?
```
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?
```

View File

@ -18,7 +18,7 @@ long b = a;
Umwandlung in einen kleineren Wertebereich ist nur **explizit** möglich.
```java
int d = 3;
byte c = (byte) a;
byte c = (byte) (d);
```
![bg right 75%](https://miro.medium.com/max/423/1*LQFhTJnVcsXhlQzrgjQIqQ.png)