title: ArithmeticException Java?
body: <p>Can anyone help me find where the execption is? I can't seem to find the problem..</p>
  
  <pre><code>  public void fieldChanged(Field f, int context){
          //if the submit button is clicked
       try{
        stopTime = System.currentTimeMillis();
        timeTaken = stopTime - startTime;
        timeInSecs = ((timeTaken/1000));
        speed = 45/timeInSecs;
        Dialog.alert("Speed of Delivery: " + speed + "mph");
        }
       catch(ArithmeticException e){
        Dialog.alert("error " + speed);
        e.printStackTrace();
  
       }
  
      } 
  </code></pre>
  
  <p>startTime variable is a global variable..</p>
  
  <p>edit:
  how can timeinSecs = 0? I cant seem to get my debugger working for the BlackBerry JDE so someone will have to help me out :( timeTaken should be the time in ms from pushing the point of pushing a start button to the pont of pushing the stop button...</p>
  
  <p>all other variables are global as well</p>