为什么显示错误 'The assigned value is never used'?

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

我在 JAVA 中编写了一个程序来找出三个数字中最大的 integer。如何通过 IDE 删除该指令?我需要担心是吗?

因为您已在 result 变量上分配了 0,它对代码没有任何影响。 result0 值从未使用过,因为您后来更改了变量而没有使用它。