java.lang.ArithmeticException: / by zero

Coderanch | Angela Li | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Having trouble writing a method that factors negative numbers.

    Coderanch | 5 years ago | Angela Li
    java.lang.ArithmeticException: / by zero

    Root Cause Analysis

    1. java.lang.ArithmeticException

      / by zero

      at QuadraticEqn.getIntegerFactors()
    2. Unknown
      QuadraticEqn.main
      1. QuadraticEqn.getIntegerFactors(QuadraticEqn.java:51)
      2. QuadraticEqn.main(QuadraticEqn.java:9)
      2 frames