Add templates

This commit is contained in:
Henri Burau
2020-03-24 17:30:20 +01:00
parent d8e583ef7d
commit 170f154a65
6 changed files with 60 additions and 28 deletions

View File

@ -3,10 +3,19 @@ title: Operatoren
description: Folien für das erste Tutorium in Programmieren 1
url: https://git.haw-hamburg.de/pm1-tutorium/slides
---
# Operatoren
```java
class String {
private int rest = 233234 % 6; //Kommentar
}
```
# Operatoren
Eva Meinen und Henri Burau
---
Vorzeichen: +, - +, -, *, /, %
präfix: ++, --
logische Operatoren: ! && ||
Vergleiche <, <=, >, >= ==, != -> == prüft und = weist zu Prioritäten
Ideen für Aufgaben: - 3 * 5 - 14 % 5 - true && false - false || true - +3 -6 - int x = 0;
- x += 3; - x =+ 5;
- int i = 3;
int b = ++i - 1;
int c = i++ * 6;