+ 1

How To Fix The TODO 1?

Here's The Questions : TODO 1 : Complete the function declaration of getFirstAndLast with return type Map <String, Char> which used for get the first and last character from the receiver value. If this code running, the console will displaying text like this : First letter is K and n for second letter Here's the code. You can edit my code if my code was gonna wrong. I'm using Kotlin : https://code.sololearn.com/cfvIAew60m9Z/?ref=app Thanks before!

6th Apr 2020, 7:23 AM
Adam Fakhrul Rozi
Adam Fakhrul Rozi - avatar
3 Answers
+ 1
Note an empty string will cause an exception and one character string will return it for both keys.
6th Apr 2020, 8:17 PM
John Wells
John Wells - avatar
+ 2
Thank You!
6th Apr 2020, 8:15 PM
Adam Fakhrul Rozi
Adam Fakhrul Rozi - avatar
6th Apr 2020, 8:09 PM
John Wells
John Wells - avatar