java.lang.ArithmeticException: Integer division by 0 Finally in printAverage().

Coderanch | Naresh Chaurasia | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Different output while using printStackTrace()

    Coderanch | 3 years ago | Naresh Chaurasia
    java.lang.ArithmeticException: Integer division by 0 Finally in printAverage().

    Root Cause Analysis

    1. java.lang.ArithmeticException

      Integer division by 0 Finally in printAverage().

      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