Put the code lines in the right order.
Introduction to Kotlin reflection
The right order
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
val fruit = Fruit()
field.set(fruit,"Apple")
fun main() {
}
val field = fruit.javaClass.getDeclaredField("fruitName")
field.isAccessible = true
___
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.