Kotlin is like java
val explicitDouble: Double = 70.0
Kotlin is like java
val explicitDouble: Double = 70.0
Kotlin is like java
// if is an expression, so ternary operation not needed
val loaded = true
val status = if (loaded) "Ready" else "Loading..."
// "Ready
Kotlin is like java
val apples = 3
val oranges = 5
val fruitSummary = "I have ${apples + oranges} " +
"pieces of fruit."
Kotlin is like java
println("Hello, world!")
Kotlin is like java
val label = "The width is "
val width = 94
val widthLabel = label + width
// The width is 94
Kotlin is like java
val age = 42
if (age < 10) {
println("You're too young to watch this movie")
} else if (age < 13) {
println("You can watch this movie with a parent")
} else {
println("You can watch this movie")
}
Kotlin is like java
var myVariable = 42
myVariable = 50
val myConstant = 42
Kotlin is like java
const val SYSTEM_DEPRECATED: String = "System is deprecated"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us