variable access outside of if statement

前端 未结 4 1829
南方客
南方客 2020-12-02 00:39

I am trying to access variable outside an if statement in java. The variable is axeMinDmg. Here is what i have but getting an error. I want minDmg = axeMi

4条回答
  •  时光说笑
    2020-12-02 01:12

    You'll need to define the variable outside of the if statement to be able to use it outside.

提交回复
热议问题