'Android - map a string to different value
I would like to map a string variable to different value! for example:
VAR := valid value is "user" or "userdebug"
VAR1 := VAR convert to "release" or "debug"
VAR2 := VAR convert to "Release" or "Debug"
I do not like if else, how can we do it just one line code?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
