java.lang.ArithmeticException: Integer division by 0

Coderanch | Naresh Chaurasia | 4 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

    Different output while using printStackTrace()

    Coderanch | 4 years ago | Naresh Chaurasia
    java.lang.ArithmeticException: Integer division by 0

    Root Cause Analysis

    1. java.lang.ArithmeticException

      Integer division by 0

      at com.khalid.ch5.Average7.computeAverage()
    2. com.khalid.ch5
      Average7.main
      1. com.khalid.ch5.Average7.computeAverage(Average7.java:36)
      2. com.khalid.ch5.Average7.printAverage(Average7.java:20)
      3. com.khalid.ch5.Average7.main(Average7.java:7)
      3 frames