Class AddNum
java.lang.Object
AddNum
public class AddNum
extends java.lang.Object
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-5 file:///Users/kiana/Courses/2ndSemester/Student.html
- Version:
- 1.0
- Author:
- Kiana Kasiri
-
Constructor Summary
Constructors Constructor Description AddNum()
-
Method Summary
-
Constructor Details
-
AddNum
public AddNum()
-
-
Method Details
-
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 parameter to addNum methodnumB
- 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.IOExceptionThis is the main method which makes use of addNum method.- Parameters:
args
- Unused.- Throws:
java.io.IOException
- On input error.- See Also:
IOException
-