In Kotlin, you've been given a task to convert a given integer number to String. However, the direct conversion is prohibited in this case. You should at first transform this integer to a Long type and only then convert it into a string. Your task is to fill in the blanks in the provided code to correctly perform these conversions and output the final result.
Type conversion
Transforming an integer to a string via long
Report a typo
Fill in the gaps with the relevant elements
fun main() {
val intNumber: = 100
val longNumber: = intNumber.()
val strNumber: String = longNumber.()
println("The string format of the number is $strNumber.")
} ___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.