Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 54 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,56 @@
# Java Docs
# Programmieren mit Java

Die aktuelle ☕-Dokumentation findet ihr unter
[diesem Link](https://jappuccini.github.io/java-docs/production)🚀
Deutschsprachige Java-Lerndokumentation, gebaut mit
[Docusaurus 3](https://docusaurus.io/).

Die Aufgaben und Lösungen findet ihr unter
[diesem Link](https://github.com/jappuccini/java-exercises)🧑‍🎓
- **Dokumentation & Übungsaufgaben:**
https://jappuccini.github.io/java-docs/production
- **Aufgaben-Repository (Branches):**
https://github.com/jappuccini/java-exercises

## Inhalt

| Bereich | Beschreibung |
| --------------------------- | ---------------------------------------------------------------------- |
| `docs/documentation/` | Java-Konzepte und Tutorials |
| `docs/exercises/` | Übungsaufgaben (verlinken auf Branches in `jappuccini/java-exercises`) |
| `docs/exam-exercises/` | Klausuraufgaben |
| `docs/additional-material/` | Tools, Einrichtungsanleitungen, Kursmaterialien |

## Voraussetzungen

- Node.js >= 22.0 (siehe `.nvmrc`)

## Lokale Entwicklung

```bash
npm install # Abhängigkeiten installieren
npm start # Entwicklungsserver starten (http://localhost:3000)
```

Änderungen an Dateien werden im Browser sofort sichtbar, ohne dass ein Neustart
nötig ist.

## Weitere Befehle

```bash
npm run build # Produktions-Build erstellen
npm run serve # Build lokal ausliefern
npm run clear # Docusaurus-Cache leeren
npm run prettier:check # Formatierung prüfen (läuft in CI)
npx prettier . --write --end-of-line crlf # Formatierung automatisch korrigieren
```

## Beitragen

1. Branch von `main` erstellen
2. Änderungen vornehmen
3. Formatierung mit `npx prettier . --write --end-of-line crlf` sicherstellen
4. Pull Request gegen `main` öffnen

Die CI prüft beim Push auf `main` automatisch die Formatierung und deployt bei
Erfolg auf GitHub Pages.

## Autoren

Daniel Appenmaier & Steffen Merk
2 changes: 1 addition & 1 deletion docs/documentation/comparators.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class NotebookByPowerInGhzComparator implements Comparator<Notebook> {
...
@Override
public int compare(Notebook o1, Notebook o2) {
return Integer.compare(o1.cpu().powerInGhz(), o2.cpu.powerInGhz());
return Integer.compare(o1.cpu().powerInGhz(), o2.cpu().powerInGhz());
}
...
}
Expand Down
2 changes: 1 addition & 1 deletion docs/documentation/javafx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public class OutputController implements Initializable {
model = Model.getInstance();

String value = model.getValue();
outputLabel.setText(value);
valueLabel.setText(value);
}

}
Expand Down
4 changes: 2 additions & 2 deletions docs/documentation/lombok.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ public class MainClass {

public static void main(String[] args) {

Student student1 = new Student("8172534", "Hans Maier");
Student student1 = new Student(8172534, "Hans Maier");
student1.setAverageGrade(2.2);
System.out.println(student1.getName());

Student student2 = new Student("9167121", "Lisa Müller", 1.8);
Student student2 = new Student(9167121, "Lisa Müller", 1.8);
System.out.println(student2);

}
Expand Down
Loading