The value of the local variable executor is not used

3108 views java
8

Could you please tell me why that is happening? enter image description here

answered question

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).

1 Answer

2

This value is not use, so it is redundancy -> i think u can remove this line of code.

posted this

Have an answer?

JD

Please login first before posting an answer.