Created
February 15, 2021 02:03
-
-
Save codinginflow/409c5e187882dbbd7ebf4672c8e0c0cb to your computer and use it in GitHub Desktop.
Kotlin for Beginners Part 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main() { | |
val exampleString = "\"Florian\nWalther\"" | |
val exampleRawString = """ "Florian | |
Walther" """ | |
print(exampleRawString) | |
val exampleNumber: Double | |
exampleNumber = 2_000_000.12 | |
val exampleLong: Long = exampleNumber.toLong() | |
val exampleChar = '?' | |
val exampleInt: Int = exampleChar.toInt() | |
val exampleBoolean = false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment