Skip to content

Commit

Permalink
Update daniel (#68)
Browse files Browse the repository at this point in the history
* Delete docs/additional-material/daniel directory

* Create cheatsheet.md

* Create daniel-java1.md

* Create exam-results.md

* Create daniel-java2.md

* Create cheatsheet.md

* Create exam-results.md

* Create sample-exam.md

* Create sample-exam.md

* format

---------

Co-authored-by: = <=>
  • Loading branch information
appenmaier authored Oct 8, 2023
1 parent 4bd4091 commit 5a5026f
Show file tree
Hide file tree
Showing 10 changed files with 962 additions and 254 deletions.
59 changes: 59 additions & 0 deletions docs/additional-material/daniel-java1/cheatsheet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
title: Cheatsheet
description: ''
sidebar_position: 30
tags: []
---

## Java API

| Klasse | Methode | Statisch | Rückgabetyp |
| ------------- | ------------------------------------------------------------------- | -------- | ------------ |
| Aufzählung | `valueOf(arg0: String)` | X | Aufzählung |
| Aufzählung | `values()` | X | Aufzählung[] |
| `Boolean` | `valueOf(s: String)`, `valueOf(b: boolean)` | X | `Boolean` |
| `Double` | `valueOf(s: String)`, `valueOf(d: double)` | X | `Double` |
| `Integer` | `valueOf(s: String)`, `valueOf(i: int)` | X | `Integer` |
| `LocalDate` | `getDayOfMonth()`, `getDayOfYear()`, `getMonthValue()`, `getYear()` | | `int` |
| `LocalDate` | `now()` | X | `LocalDate` |
| `LocalDate` | `of(year: int, month: int, dayOfMonth: int)` | X | `LocalDate` |
| `LocalTime` | `getHour()`, `getMinute()`, `getSecond()` | | `int` |
| `LocalTime` | `now()` | X | `LocalTime` |
| `LocalTime` | `of(hour: int, minute: int, second: int)` | X | `LocalTime` |
| `Object` | `equals(object: Object)` | | `boolean` |
| `Object` | `hashCode()` | | `int` |
| `Object` | `toString()` | | `String` |
| `PrintStream` | print-Methoden, println-Methoden | | `void` |
| `Random` | `nextInt(bound: int)` | | `int` |
| `Scanner` | `hasNextLine()` | | `boolean` |
| `Scanner` | `next()` | | `String` |
| `Scanner` | `nextBoolean()` | | `boolean` |
| `Scanner` | `nextDouble()` | | `double` |
| `Scanner` | `nextInt()` | | `int` |
| `Scanner` | `nextLine()` | | `String` |
| `String` | `charAt(index: int)` | | `char` |
| `String` | `length()` | | `int` |
| `String` | `split(regex: String)` | | `String[]` |
| `String` | `toLowerCase()`, `toUpperCase()` | | `String` |
| `System` | `currentTimeMillis()` | X | `long` |

## Java Collections Framework

| Klasse | Methode | Statisch | Rückgabetyp |
| -------------- | --------------------------------------- | -------- | ----------- |
| `ArrayList<E>` | `add(e: E)` | | `boolean` |
| `ArrayList<E>` | `add(index: int, element: E)` | | `void` |
| `ArrayList<E>` | `contains(o: Object)` | | `boolean` |
| `ArrayList<E>` | `get(index: int)` | | `E` |
| `ArrayList<E>` | `remove(index: int)` | | `E` |
| `ArrayList<E>` | `remove(o: Object)` | | `boolean` |
| `ArrayList<E>` | `size()` | | `int` |
| `Collections` | `sort(list: List<T>, c: Comparator<T>)` | X | `void` |
| `List<E>` | `of(elements: E...)` | X | `List<E>` |

## Funktionale Schnittstellen

| Klasse | Methode | Statisch | Rückgabetyp |
| --------------- | ----------------------- | -------- | ----------- |
| `Comparable<T>` | `compareTo(o: T)` | | `int` |
| `Comparator<T>` | `compare(o1: T, o2: T)` | | `int` |
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Daniel
title: Daniel (Programmierung 1)
description: ''
sidebar_position: 20
tags: []
Expand Down
36 changes: 36 additions & 0 deletions docs/additional-material/daniel-java1/exam-results.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: Klausurergebnisse
description: ''
sidebar_position: 50
tags: []
---

## Klausur Q2 2022

```mermaid
pie title 1/10
"100+ Punkte" : 2
"90-99 Punkte" : 5
"80-89 Punkte" : 4
"70-79 Punkte" : 5
"60-69 Punkte" : 3
"50-59 Punkte" : 4
"40-49 Punkte" : 3
"30-39 Punkte" : 3
"20-29 Punkte" : 3
"10-19 Punkte" : 0
"0-9 Punkte" : 1
```

```mermaid
pie title 1/3
"68-100 Punkte" : 16
"34-67 Punkte" : 11
"0-33 Punkte" : 6
```

```mermaid
pie title 1/2
"50-100 Punkte" : 23
"0-49 Punkte" : 10
```
Loading

0 comments on commit 5a5026f

Please sign in to comment.