Class AverageInt


  • public class AverageInt
    extends java.lang.Object
    A simple class that calculates average of integer numbers
    Author:
    pcingola
    • Constructor Summary

      Constructors 
      Constructor Description
      AverageInt()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(double add)  
      double getAvg()  
      int getCount()  
      long 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

      • AverageInt

        public AverageInt()
    • Method Detail

      • add

        public void add​(double add)
      • getAvg

        public double getAvg()
      • getCount

        public int getCount()
      • getSum

        public long getSum()
      • reset

        public void reset()
      • toString

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