Why is it showing the error ‘The assigned value is never used’?

I coded a program in JAVA to find the greatest integer among three numbers. How can I eliminate that instruction by the IDE? and do I need to worry about is?
enter image description here


as you have assigned 0 on the result variable and it doesn’t have any impact on the code. This 0 value of result has never been used as you changed the variable afterwards without using it.