Could you please tell me why that is happening?
enter image description here
Please don't post images. Post the code here. The error message says that you have declared a variable but you haven't used it thereafter
What do you mean "why it's happening"? The IDE's warning message is clear : the variable isn't being used anywhere, it's declared but not being used (in the image you posted the line that does use the variable is commented out).
This value is not use, so it is redundancy -> i think u can remove this line of code.
Please login first before posting an answer.