ArithmeticException Java?

后端 未结 8 1871
南旧
南旧 2020-12-06 22:29

Can anyone help me find where the execption is? I can\'t seem to find the problem..

  public void fieldChanged(Field f, int context){
        //if the submit         


        
8条回答
  •  臣服心动
    2020-12-06 23:17

    45 / 0 time taken reaches zero and you have division by zero at

    speed = 45/timeInSecs;

提交回复
热议问题