Class Main
java.lang.Object
Main
This is the Main class
- Version:
- 1.0.1
- Author:
- Justin Drtvic
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
this is the main function, which is needed to execute the code- Parameters:
args
- params passed by the command line
-
addition
public static int addition(int left, int right) Deprecated.deprecated since 3.0.0addition of two integer numbers- Parameters:
left
- number for left sideright
- number for right side- Returns:
- sum of two numbers
- Throws:
IllegalArgumentException
- for numbers smaller than 0- Since:
- Java API 7
- See Also:
-