Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update task.md #176

Merged
merged 1 commit into from
Dec 15, 2023
Merged
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 TheFirstDateWithProgramming/readUserInputTheory/task.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
We have previously talked about the _built-in_ functions in Kotlin.
In addition to the already familiar functions for output to the console,
Kotlin has the [`readlnOrNull`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/readln-or-null.html) function, which reads the values entered by the user and stores them in a variable:
Kotlin also has the [`readlnOrNull`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/readln-or-null.html) function, which reads values entered by the user and stores them in a variable:

```kotlin
val myValue = readlnOrNull()
Expand All @@ -25,4 +25,4 @@ val myValue: String? = readlnOrNull()
// The myValue variable stores the user's input
```

It is connected to the null safety in Kotlin, we will consider it later, but if you are interested in this topic, you can read more in the [documentation](https://kotlinlang.org/docs/null-safety.html).
This relates to null safety in Kotlin, which we will consider later. If you are interested in this topic, you can read more in the [documentation](https://kotlinlang.org/docs/null-safety.html).
Loading