Skip to content

Instantly share code, notes, and snippets.

@codinginflow
Created February 15, 2021 02:03
Show Gist options
  • Save codinginflow/409c5e187882dbbd7ebf4672c8e0c0cb to your computer and use it in GitHub Desktop.
Save codinginflow/409c5e187882dbbd7ebf4672c8e0c0cb to your computer and use it in GitHub Desktop.
Kotlin for Beginners Part 5
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