Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/main/kotlin/TaskOne.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
object TaskOne {
// Beispiel: Schreibe eine Funktion, die "Hallo Welt!" auf der Konsole ausgibt und zurückliefert.
// Example: Write a function that prints "Hello World!" to the console and returns it.
// Example: Write a function that prints "Hallo Welt!" to the console and returns it.
fun printHallo(): String {
println("Hallo Welt!")
return "Hallo Welt!"
Expand Down Expand Up @@ -31,7 +31,7 @@ object TaskOne {
}

// 5. Schreibe eine Funktion, die den Namen eines Benutzers als Parameter übergeben bekommt und "Hallo, [Name]!" aus und zurückgibt.
// 5. Write a function that takes a user's name as a parameter and prints and returns "Hello, [Name]!".
// 5. Write a function that takes a user's name as a parameter and prints and returns "Hallo, [Name]!".
fun printName(name: String): String {
throw NotImplementedError("TODO")
}
Expand Down