Class AddNum


  • public class AddNum
    extends java.lang.Object

    Add Two Numbers!

    The AddNum program implements an application that simply adds two given integer numbers and Prints the output on the screen.

    Note: Giving proper comments in your program makes it more user friendly and it is assumed as a high quality code.

    Since:
    2020-01-17
    • Constructor Summary

      Constructors 
      Constructor Description
      AddNum()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int addNum​(int numA, int numB)
      This method is used to add two integers.
      static void main​(java.lang.String[] args)
      This is the main method which makes use of addNum method.
      • Methods inherited from class java.lang.Object

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

      • AddNum

        public AddNum()
    • Method Detail

      • addNum

        public int addNum​(int numA,
                          int numB)
        This method is used to add two integers. This is a the simplest form of a class method, just to show the usage of various javadoc Tags.
        Parameters:
        numA - This is the first paramter to addNum method
        numB - This is the second parameter to addNum method
        Returns:
        int This returns sum of numA and numB.
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        This is the main method which makes use of addNum method.
        Parameters:
        args - Unused.
        Throws:
        java.io.IOException - On input error.
        See Also:
        IOException