saving . . . saved it gives Warning as : variable initializer is redundate. has been deleted. it gives Warning as : variable initializer is redundate. has been hidden .
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 26-09-20, 12:37 p.m. poojankaneriya8@gmail.com

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.
26-09-20, 7:19 p.m. NirmalaVenkat


Log-in to answer to this question.