Class Average


  • public class Average
    extends java.lang.Object
    A simple class that calculates averages
    Author:
    pcingola
    • Constructor Summary

      Constructors 
      Constructor Description
      Average()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(double add)  
      double getAvg()  
      int getCount()  
      double getSum()  
      void reset()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Average

        public Average()
    • Method Detail

      • add

        public void add​(double add)
      • getAvg

        public double getAvg()
      • getCount

        public int getCount()
      • getSum

        public double getSum()
      • reset

        public void reset()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object