Write a line of code that will return the string by the KEY key from the object named "sharedPreferences". If there is no such key, return the value "none". KEY is the name of the variable with the key string, not the string itself, and already defined.
SharedPreferences
Obtaining values
Report a typo
Enter a short text
___
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.