Retrieve the value of the object according to each key. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Retrieve the value of the object according to each key.

I'm getting an error warning in the Kotlin programming language code I wrote. The error message is as follows: Todo 2 should pick up the value of the vehicle object according to each key. In the previous review, this code is correct (according to the reviewer). But in review this time the code is considered wrong. How do I fix? The code I've written you can see here (if there's one wrong in the coding, you can help to fix it): https://code.sololearn.com/cHtc3l1T7Q2s/#kt Thank you in advance, hope your day is fun!

8th Apr 2020, 5:00 AM
Adam Fakhrul Rozi
Adam Fakhrul Rozi - avatar
2 Answers
8th Apr 2020, 6:13 AM
Oma Falk
Oma Falk - avatar
0
Wrong again. The message from reviewer (On "data class") : "Todo on this exercise should be done by utilizing MAP, a collection that can store data in a key-value format. Please check the conditions of the exercise again." How?
8th Apr 2020, 6:15 AM
Adam Fakhrul Rozi
Adam Fakhrul Rozi - avatar