Oops! A programmer made some mistakes in the code. Correct the code to make it compilable. The program should print "Good job!".
Introduction to generic programming
Learning on mistakes
Report a typo
Sample Input 1:
Sample Output 1:
Good job!Write a program in Kotlin
class Container<T>(t: T) {
var value = t
}
fun main() {
val container = Container<>()
println(container.value)
}
___
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.