public class HelloWorld
extends java.lang.Object
| Constructor | Description |
|---|---|
HelloWorld() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
main(java.lang.String[] args) |
|
static java.lang.String |
returnOperation(int one,
int two,
java.lang.String operator) |
Performs and returns an equation for two given integers and an operator
|
public static void main(java.lang.String[] args)
public static java.lang.String returnOperation(int one,
int two,
java.lang.String operator)
one - the first integer to have in the operation (e.g. the dividend if operator was /)two - the second integer to have in the operation (e.g. the divisor if operator was /)operator - the operator that should be used e.g. "*"