it gives Warning as : variable initializer is redundate.
Title
Question
when i run the program it gives warnings as : <ul> <li>Variable 'name' initializer is redundant</li><li>Variable 'obtainedName' initializer is redundant </li><li>Variable 'obtainedGender' initializer is redundant </li></ul>
<ul><li>what it means...?</li></ul>
Android-app-using-Kotlin Adding-Radio-Buttons 06-07 min 40-50 sec
Answers:
It means that there is no purpose of assigning the variables as obtainedname = " " because it is never used before you assign a different value.
press Alt+Enter and suppress this check for the statement wherever you are getting the warnings.
You can download the code files available below the video player and use it for your testing.
Login to add comment