filmov
tv
Kotlin For Beginners Tutorial (Getting User Input, Null Safety, Nulls Operators)

Показать описание
In today's video, we learned about the different ways of getting the user input, as well as the different return types of each function. in Addition, we looked at null values and nullability in Kotlin and we learned how to handle null values in more than one way in order to avoid exceptions.
Timestamps
0:00 Intro
0:13 Difference between print and println in Kotlin
1:25 Getting user input with readLine function
2:14 Getting user input with readln function
2:47 Difference between readLine and readln and what is nullability
4:36 Null safety in Kotlin
6:09 Safe call ? operator & non-null assertion !! operator
9:38 Checking for nullability with if-else
11:01 Elvis ?: operator
11:48 Getting user input as (Int, Double, Float, Char)
14:12 Getting user input with readlnOrNull function
14:33 Which read function to use for user input?
Kotlin For Beginners Playlist
Regular coding posts on Instagram
Regular coding tips on Twitter
If you liked my Youtube content buy me a coffee at
Timestamps
0:00 Intro
0:13 Difference between print and println in Kotlin
1:25 Getting user input with readLine function
2:14 Getting user input with readln function
2:47 Difference between readLine and readln and what is nullability
4:36 Null safety in Kotlin
6:09 Safe call ? operator & non-null assertion !! operator
9:38 Checking for nullability with if-else
11:01 Elvis ?: operator
11:48 Getting user input as (Int, Double, Float, Char)
14:12 Getting user input with readlnOrNull function
14:33 Which read function to use for user input?
Kotlin For Beginners Playlist
Regular coding posts on Instagram
Regular coding tips on Twitter
If you liked my Youtube content buy me a coffee at