public class Adder
extends java.lang.Object
| Constructor and Description |
|---|
Adder() |
| Modifier and Type | Method and Description |
|---|---|
static int |
computeSum(int x,
int y) |
static void |
main(java.lang.String[] args)
Runs the Adder program to compute the sum of 2 ints.
|
public static void main(java.lang.String[] args)
args - the command line parameterspublic static int computeSum(int x,
int y)
x - first number to sumy - second number to sum